aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/json/decoding_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-09-17 21:37:48 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-09-17 21:37:48 +0000
commit71e33d96509d0a8fe698b228579e5a7adef48601 (patch)
tree5266418ba28118a085a615773cd78f1f7bef1452 /activesupport/test/json/decoding_test.rb
parent6b68b215c2eee237248dcebbbe2c9258ebd8ca57 (diff)
downloadrails-71e33d96509d0a8fe698b228579e5a7adef48601.tar.gz
rails-71e33d96509d0a8fe698b228579e5a7adef48601.tar.bz2
rails-71e33d96509d0a8fe698b228579e5a7adef48601.zip
Fix JSON decoder with nested quotes and commas. Closes #9579.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/json/decoding_test.rb')
-rw-r--r--activesupport/test/json/decoding_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/json/decoding_test.rb b/activesupport/test/json/decoding_test.rb
index acdde21858..01796d5e99 100644
--- a/activesupport/test/json/decoding_test.rb
+++ b/activesupport/test/json/decoding_test.rb
@@ -8,6 +8,8 @@ class TestJSONDecoding < Test::Unit::TestCase
%({"returnTo":{"/categories":1}}) => {"returnTo" => {"/categories" => 1}},
%({"returnTo":[1,"a"]}) => {"returnTo" => [1, "a"]},
%({"returnTo":[1,"\\"a\\",", "b"]}) => {"returnTo" => [1, "\"a\",", "b"]},
+ %({a: "'", "b": "5,000"}) => {"a" => "'", "b" => "5,000"},
+ %({a: "a's, b's and c's", "b": "5,000"}) => {"a" => "a's, b's and c's", "b" => "5,000"},
%([]) => [],
%({}) => {},
%(1) => 1,