diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-02 20:52:38 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-02 20:53:03 -0200 |
commit | 434aa095607669f3b95343e874064d7c74bf921c (patch) | |
tree | 7c9e3e6d7cb503939f6723859352ed7938e58ac6 /activesupport/test | |
parent | e99e859a045d9241e7297499beb100c7e59e3820 (diff) | |
download | rails-434aa095607669f3b95343e874064d7c74bf921c.tar.gz rails-434aa095607669f3b95343e874064d7c74bf921c.tar.bz2 rails-434aa095607669f3b95343e874064d7c74bf921c.zip |
Fix tests providing valid JSON
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/json/decoding_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/json/decoding_test.rb b/activesupport/test/json/decoding_test.rb index 613c7531d9..436861baad 100644 --- a/activesupport/test/json/decoding_test.rb +++ b/activesupport/test/json/decoding_test.rb @@ -43,8 +43,8 @@ class TestJSONDecoding < ActiveSupport::TestCase [{'d' => Date.new(1970, 1, 1), 's' => 'http://example.com'}, {'d' => Date.new(1970, 1, 1), 's' => 'http://example.com'}], # tests escaping of "\n" char with Yaml backend - %q("\n") => "\n", - %q("\u000a") => "\n", + %q({"a":"\n"}) => {"a"=>"\n"}, + %q({"a":"\u000a"}) => {"a"=>"\n"}, %q({"a":"Line1\u000aLine2"}) => {"a"=>"Line1\nLine2"} } |