From 34c125d774ed817d45bb11a5173f989ca16cc514 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Fri, 26 Oct 2007 03:22:02 +0000 Subject: Fix JSON encoding/decoding bugs dealing with /'s. Closes #9990 [Rick, theamazingrando] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8026 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/json/encoding_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activesupport/test/json/encoding_test.rb') diff --git a/activesupport/test/json/encoding_test.rb b/activesupport/test/json/encoding_test.rb index 923f4b8396..8200dfcb62 100644 --- a/activesupport/test/json/encoding_test.rb +++ b/activesupport/test/json/encoding_test.rb @@ -14,7 +14,8 @@ class TestJSONEncoding < Test::Unit::TestCase [ 2.5, %(2.5) ]] StringTests = [[ 'this is the ', %("this is the \\074string\\076")], - [ 'a "string" with quotes', %("a \\"string\\" with quotes") ]] + [ 'a "string" with quotes', %("a \\"string\\" with quotes") ], + [ 'http://test.host/posts/1', %("http:\\/\\/test.host\\/posts\\/1")]] ArrayTests = [[ ['a', 'b', 'c'], %([\"a\", \"b\", \"c\"]) ], [ [1, 'a', :b, nil, false], %([1, \"a\", \"b\", null, false]) ]] -- cgit v1.2.3