spec/dynamoid/persistence_spec.rb in dynamoid-0.3.1 vs spec/dynamoid/persistence_spec.rb in dynamoid-0.3.2
- old
+ new
@@ -136,7 +136,13 @@
@address.city = 'San Francisco'
@address.save
@address.city_was.should == 'Chicago'
end
+
+ it 'works with a HashWithIndifferentAccess' do
+ hash = ActiveSupport::HashWithIndifferentAccess.new("test" => "hi", "hello" => "there")
+
+ lambda {Address.create(hash)}.should_not raise_error
+ end
end