diff options
author | Raghunadh <raghunadhd@gmail.com> | 2012-02-09 19:03:58 +0530 |
---|---|---|
committer | Raghunadh <raghunadhd@gmail.com> | 2012-02-10 11:22:20 +0530 |
commit | fa464681128b379ca224e01dcefbe683999f8438 (patch) | |
tree | 6904a8014fb7c85fe2f660beaf63ecc1fe70b6c0 /activerecord/test/cases/nested_attributes_test.rb | |
parent | e6c98b83cbf4eab8944601754cc8d0e627b55d6f (diff) | |
download | rails-fa464681128b379ca224e01dcefbe683999f8438.tar.gz rails-fa464681128b379ca224e01dcefbe683999f8438.tar.bz2 rails-fa464681128b379ca224e01dcefbe683999f8438.zip |
Refactored code
Diffstat (limited to 'activerecord/test/cases/nested_attributes_test.rb')
-rw-r--r-- | activerecord/test/cases/nested_attributes_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb index 2ae9cb4888..728ac22fda 100644 --- a/activerecord/test/cases/nested_attributes_test.rb +++ b/activerecord/test/cases/nested_attributes_test.rb @@ -663,7 +663,7 @@ module NestedAttributesOnACollectionAssociationTests end def test_should_sort_the_hash_by_the_keys_before_building_new_associated_models - attributes = ActiveSupport::OrderedHash.new + attributes = {} attributes['123726353'] = { :name => 'Grace OMalley' } attributes['2'] = { :name => 'Privateers Greed' } # 2 is lower then 123726353 @pirate.send(association_setter, attributes) |