diff options
author | Florian Frank <flori@ping.de> | 2016-06-07 17:26:00 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2016-06-07 17:26:00 +0200 |
commit | 00ce49d92bfce23a93bb52bc1ab9e9bf040a4493 (patch) | |
tree | 2c44fb1334f76858970af5bbcec7bdb3d2de726f /tests/json_addition_test.rb | |
parent | 98aa312dc9aa9b7dd66cf282d6eaf22eb94360fd (diff) | |
parent | 39b6654d6f68b8431ac79e12e852b6448bc4fe79 (diff) | |
download | json-00ce49d92bfce23a93bb52bc1ab9e9bf040a4493.tar.gz |
Merge branch 'trunk' of https://github.com/nobu/json into nobu-trunk
Diffstat (limited to 'tests/json_addition_test.rb')
-rw-r--r-- | tests/json_addition_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/json_addition_test.rb b/tests/json_addition_test.rb index 128f34a..a028e0f 100644 --- a/tests/json_addition_test.rb +++ b/tests/json_addition_test.rb @@ -1,3 +1,4 @@ +#frozen_string_literal: false require 'test_helper' require 'json/add/core' require 'json/add/complex' @@ -108,7 +109,7 @@ class JSONAdditionTest < Test::Unit::TestCase c = C.new assert !C.json_creatable? json = generate(c) - assert_raises(ArgumentError, NameError) { parse(json, :create_additions => true) } + assert_raise(ArgumentError, NameError) { parse(json, :create_additions => true) } end def test_raw_strings @@ -147,7 +148,7 @@ class JSONAdditionTest < Test::Unit::TestCase assert_equal s, JSON(JSON(s), :create_additions => true) struct = Struct.new :foo, :bar s = struct.new 4711, 'foot' - assert_raises(JSONError) { JSON(s) } + assert_raise(JSONError) { JSON(s) } begin raise TypeError, "test me" rescue TypeError => e |