mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix tests providing valid JSON
This commit is contained in:
parent
e99e859a04
commit
434aa09560
1 changed files with 2 additions and 2 deletions
|
@ -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"}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue