diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-25 18:22:31 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-25 18:22:31 +0000 |
commit | 3aadfcef88e57b3f0a0bde9a2bc05d372e2fd93b (patch) | |
tree | 9b1e05803d0c60aa39a3ff6a037bf77fb9f4a164 /activesupport/test/json | |
parent | 2cda5096b8c02b1fbabc2857472ee03d7ecfe047 (diff) | |
download | rails-3aadfcef88e57b3f0a0bde9a2bc05d372e2fd93b.tar.gz rails-3aadfcef88e57b3f0a0bde9a2bc05d372e2fd93b.tar.bz2 rails-3aadfcef88e57b3f0a0bde9a2bc05d372e2fd93b.zip |
Improve various test coverage. Closes #8676 [kamal]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7117 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/json')
-rw-r--r-- | activesupport/test/json/decoding_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |