Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/json_common_interface_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_create_id
end

def test_deep_const_get
assert_raises(ArgumentError) { JSON.deep_const_get('Nix::Da') }
assert_raise(ArgumentError) { JSON.deep_const_get('Nix::Da') }
assert_equal File::SEPARATOR, JSON.deep_const_get('File::SEPARATOR')
end

Expand Down Expand Up @@ -93,8 +93,8 @@ def test_load_with_options

def test_load_null
assert_equal nil, JSON.load(nil, nil, :allow_blank => true)
assert_raises(TypeError) { JSON.load(nil, nil, :allow_blank => false) }
assert_raises(JSON::ParserError) { JSON.load('', nil, :allow_blank => false) }
assert_raise(TypeError) { JSON.load(nil, nil, :allow_blank => false) }
assert_raise(JSON::ParserError) { JSON.load('', nil, :allow_blank => false) }
end

def test_dump
Expand Down