From 3aadfcef88e57b3f0a0bde9a2bc05d372e2fd93b Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 25 Jun 2007 18:22:31 +0000 Subject: Improve various test coverage. Closes #8676 [kamal] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7117 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/json/decoding_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/test/json/decoding_test.rb') diff --git a/activesupport/test/json/decoding_test.rb b/activesupport/test/json/decoding_test.rb index 77253b6dad..acdde21858 100644 --- a/activesupport/test/json/decoding_test.rb +++ b/activesupport/test/json/decoding_test.rb @@ -25,4 +25,8 @@ class TestJSONDecoding < Test::Unit::TestCase end end end + + def test_failed_json_decoding + assert_raises(ActiveSupport::JSON::ParseError) { ActiveSupport::JSON.decode(%({: 1})) } + end end -- cgit v1.2.3