Skip to content

Commit

Permalink
It should be in Json format to work with JsonGem
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Jun 29, 2011
1 parent a657a4b commit a13317d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/test/json/decoding_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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'},
{'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 # tests escaping of "\n" char with Yaml backend
%q("\n") => "\n", %q({"a":"\n"}) => {"a"=>"\n"},
%q("\u000a") => "\n", %q({"a":"\u000a"}) => {"a"=>"\n"},
%q({"a":"Line1\u000aLine2"}) => {"a"=>"Line1\nLine2"} %q({"a":"Line1\u000aLine2"}) => {"a"=>"Line1\nLine2"}
} }


Expand Down

0 comments on commit a13317d

Please sign in to comment.