Instiki 0.16.5
Update to Rails 2.3.2 (the stable Rails 2.3 release). Add audio/speex support Update CHANGELOG Bump version number
This commit is contained in:
parent
801d307405
commit
e2ccdfd812
264 changed files with 4850 additions and 1906 deletions
|
@ -28,7 +28,11 @@ class TestJSONDecoding < Test::Unit::TestCase
|
|||
%(null) => nil,
|
||||
%(true) => true,
|
||||
%(false) => false,
|
||||
%q("http:\/\/test.host\/posts\/1") => "http://test.host/posts/1"
|
||||
%q("http:\/\/test.host\/posts\/1") => "http://test.host/posts/1",
|
||||
%q("\u003cunicode\u0020escape\u003e") => "<unicode escape>",
|
||||
%q("\\\\u0020skip double backslashes") => "\\u0020skip double backslashes",
|
||||
%q({a: "\u003cbr /\u003e"}) => {'a' => "<br />"},
|
||||
%q({b:["\u003ci\u003e","\u003cb\u003e","\u003cu\u003e"]}) => {'b' => ["<i>","<b>","<u>"]}
|
||||
}
|
||||
|
||||
TESTS.each do |json, expected|
|
||||
|
@ -40,6 +44,6 @@ class TestJSONDecoding < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_failed_json_decoding
|
||||
assert_raises(ActiveSupport::JSON::ParseError) { ActiveSupport::JSON.decode(%({: 1})) }
|
||||
assert_raise(ActiveSupport::JSON::ParseError) { ActiveSupport::JSON.decode(%({: 1})) }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue