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/validations_test.rb | |
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/validations_test.rb')
-rw-r--r-- | activemodel/test/cases/validations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/validations_test.rb b/activemodel/test/cases/validations_test.rb index 0b1de62a48..a716d0896e 100644 --- a/activemodel/test/cases/validations_test.rb +++ b/activemodel/test/cases/validations_test.rb @@ -180,7 +180,7 @@ class ValidationsTest < ActiveModel::TestCase assert_match %r{<error>Title can't be blank</error>}, xml assert_match %r{<error>Content can't be blank</error>}, xml - hash = ActiveSupport::OrderedHash.new + hash = {} hash[:title] = ["can't be blank"] hash[:content] = ["can't be blank"] assert_equal t.errors.to_json, hash.to_json |