Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix tests providing valid JSON

  • Loading branch information...
commit 434aa095607669f3b95343e874064d7c74bf921c 1 parent e99e859
@spastorino spastorino authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/json/decoding_test.rb
View
4 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"}
}
Please sign in to comment.
Something went wrong with that request. Please try again.