diff options
author | prasath <prasath@dhcppc1.(none)> | 2012-02-08 00:23:03 +0530 |
---|---|---|
committer | prasath <prasath@dhcppc1.(none)> | 2012-02-08 00:34:47 +0530 |
commit | 47628ec12816fb47f2decdfa8733362d6ef31d22 (patch) | |
tree | 889de132b5f56c69a34282494bf12cf2d877e714 /activemodel/test/cases/serializers | |
parent | 12c3b3d65738eccb7b7a043b2a8a1ba65a46d34e (diff) | |
download | rails-47628ec12816fb47f2decdfa8733362d6ef31d22.tar.gz rails-47628ec12816fb47f2decdfa8733362d6ef31d22.tar.bz2 rails-47628ec12816fb47f2decdfa8733362d6ef31d22.zip |
replacing ordered hash to ruby hash
Diffstat (limited to 'activemodel/test/cases/serializers')
-rw-r--r-- | activemodel/test/cases/serializers/json_serialization_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/test/cases/serializers/json_serialization_test.rb b/activemodel/test/cases/serializers/json_serialization_test.rb index 4ac5fb1779..7160635eb4 100644 --- a/activemodel/test/cases/serializers/json_serialization_test.rb +++ b/activemodel/test/cases/serializers/json_serialization_test.rb @@ -130,13 +130,13 @@ class JsonSerializationTest < ActiveModel::TestCase assert_match %r{"favorite_quote":"Constraints are liberating"}, methods_json end - test "should return OrderedHash for errors" do + test "should return Hash for errors" do contact = Contact.new contact.errors.add :name, "can't be blank" contact.errors.add :name, "is too short (minimum is 2 characters)" contact.errors.add :age, "must be 16 or over" - hash = ActiveSupport::OrderedHash.new + hash = {} hash[:name] = ["can't be blank", "is too short (minimum is 2 characters)"] hash[:age] = ["must be 16 or over"] assert_equal hash.to_json, contact.errors.to_json |