summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-31 00:38:27 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-31 00:38:27 +0900
commitc74039eec71b16c75965a36451ca14b18a81b278 (patch)
tree451824744ed8b39a6ce18cd24270b4242956d57b /test
parente58fed128b737119e7e0f44292e8b0f0c8e691fb (diff)
use assert_raise
Diffstat (limited to 'test')
-rw-r--r--test/yarp/ruby_api_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/yarp/ruby_api_test.rb b/test/yarp/ruby_api_test.rb
index 73b8825df0..b74da653f4 100644
--- a/test/yarp/ruby_api_test.rb
+++ b/test/yarp/ruby_api_test.rb
@@ -39,7 +39,7 @@ class YARPRubyAPITest < Test::Unit::TestCase
assert_equal 0, joined.start_offset
assert_equal 10, joined.length
- e = assert_raises RuntimeError do
+ e = assert_rais RuntimeError do
arg.location.join(recv.location)
end
assert_equal "Incompatible locations", e.message
@@ -47,12 +47,12 @@ class YARPRubyAPITest < Test::Unit::TestCase
other_recv, other_args_node, _ = parse_expression("1234 + 567").child_nodes
other_arg = other_args_node.arguments[0]
- e = assert_raises RuntimeError do
+ e = assert_rais RuntimeError do
other_arg.location.join(recv.location)
end
assert_equal "Incompatible sources", e.message
- e = assert_raises RuntimeError do
+ e = assert_rais RuntimeError do
recv.location.join(other_arg.location)
end
assert_equal "Incompatible sources", e.message