diff options
author | Michael Koziarski <michael@koziarski.com> | 2009-01-16 17:57:45 +1300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-01-16 17:57:45 +1300 |
commit | f2ee3f20dfa9853b8bc4a3e13e59f25c26ae33ad (patch) | |
tree | b5e08dafb61e84011edce1f606bc23dc1e3a0e6c /activerecord/test/cases | |
parent | 0bed5bdb213ea68e2f167ac4f61f698f37cf2d69 (diff) | |
download | rails-f2ee3f20dfa9853b8bc4a3e13e59f25c26ae33ad.tar.gz rails-f2ee3f20dfa9853b8bc4a3e13e59f25c26ae33ad.tar.bz2 rails-f2ee3f20dfa9853b8bc4a3e13e59f25c26ae33ad.zip |
Fix the AR json serialization tests to comply with the earlier change to quote keys correctly
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/json_serialization_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/json_serialization_test.rb b/activerecord/test/cases/json_serialization_test.rb index 3446e5e7f0..975acde096 100644 --- a/activerecord/test/cases/json_serialization_test.rb +++ b/activerecord/test/cases/json_serialization_test.rb @@ -200,6 +200,6 @@ class DatabaseConnectedJsonEncodingTest < ActiveRecord::TestCase 2 => @mary } - assert_equal %({1: {"name": "David"}}), authors_hash.to_json(:only => [1, :name]) + assert_equal %({"1": {"name": "David"}}), authors_hash.to_json(:only => [1, :name]) end end |