diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-10-26 03:22:02 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-10-26 03:22:02 +0000 |
commit | 34c125d774ed817d45bb11a5173f989ca16cc514 (patch) | |
tree | 804c6c0bb20e94323cd36c04869051616a6c7a58 /activesupport/test/json/encoding_test.rb | |
parent | 8b2a6014a2971159c2169704ee5d3402f8d8d1a3 (diff) | |
download | rails-34c125d774ed817d45bb11a5173f989ca16cc514.tar.gz rails-34c125d774ed817d45bb11a5173f989ca16cc514.tar.bz2 rails-34c125d774ed817d45bb11a5173f989ca16cc514.zip |
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
Diffstat (limited to 'activesupport/test/json/encoding_test.rb')
-rw-r--r-- | activesupport/test/json/encoding_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 <string>', %("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]) ]] |