spec/nested_hash_spec.rb in restruct-0.0.3 vs spec/nested_hash_spec.rb in restruct-0.1.0

- old
+ new

@@ -1,14 +1,14 @@ require 'minitest_helper' class Counter < Restruct::Structure def current - (redis.call('GET', id) || 0).to_i + (connection.call('GET', id) || 0).to_i end alias_method :to_primitive, :current def incr - redis.call 'SET', id, current + 1 + connection.call 'SET', id, current + 1 self end end CounterHash = Restruct::NestedHash.new(Counter) \ No newline at end of file