Fix the AR json serialization tests to comply with the earlier change to quote keys correctly

This commit is contained in:
Michael Koziarski
2009-01-16 17:57:45 +13:00
parent 0bed5bdb21
commit f2ee3f20df

View File

@@ -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