aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-09-30 20:57:50 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-09-30 20:57:50 +0000
commit7275d2749cb829d89bffe7e6aa87c99084351f6a (patch)
treeea1ffa76f30699cb84827bf6d21dbdb6d1201c1e /activerecord
parent66d05f5e2c7ac6b18220956fbcf34efcd32638fc (diff)
downloadrails-7275d2749cb829d89bffe7e6aa87c99084351f6a.tar.gz
rails-7275d2749cb829d89bffe7e6aa87c99084351f6a.tar.bz2
rails-7275d2749cb829d89bffe7e6aa87c99084351f6a.zip
Fixed JSON encoding to use quoted keys according to the JSON standard (closes #8762) [choonkat/chuyeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/json_serialization_test.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/json_serialization_test.rb b/activerecord/test/json_serialization_test.rb
index f4d4f4e1a3..d12e7c42c6 100644
--- a/activerecord/test/json_serialization_test.rb
+++ b/activerecord/test/json_serialization_test.rb
@@ -8,9 +8,6 @@ require 'fixtures/comment'
class JsonSerializationTest < Test::Unit::TestCase
def setup
- # Quote all keys (so that we can test against strictly valid JSON).
- ActiveSupport::JSON.unquote_hash_key_identifiers = false
-
@contact = Contact.new(
:name => 'Konata Izumi',
:age => 16,
@@ -70,8 +67,6 @@ class DatabaseConnectedJsonEncodingTest < Test::Unit::TestCase
fixtures :authors, :posts, :comments, :tags, :taggings
def setup
- ActiveSupport::JSON.unquote_hash_key_identifiers = false
-
@david = authors(:david)
end