Permalink
Browse files

Merge pull request #1901 from arunagw/json_parse

It should be in Json format to work with JsonGem
  • Loading branch information...
2 parents a657a4b + a13317d commit 39d53504998630b09b35a5c8665e86dd0e8af050 @spastorino spastorino committed Jun 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/json/decoding_test.rb
@@ -49,8 +49,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"}
}

0 comments on commit 39d5350

Please sign in to comment.