Skip to content

Commit b85e01d

Browse files
authored
Use assert_raise
1 parent 687213d commit b85e01d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/yarp/ruby_api_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ def test_location_join
3939
assert_equal 0, joined.start_offset
4040
assert_equal 10, joined.length
4141

42-
assert_raises RuntimeError, "Incompatible locations" do
42+
assert_raise RuntimeError, "Incompatible locations" do
4343
arg.location.join(recv.location)
4444
end
4545

4646
other_recv, other_args_node, _ = parse_expression("1234 + 567").child_nodes
4747
other_arg = other_args_node.arguments[0]
4848

49-
assert_raises RuntimeError, "Incompatible sources" do
49+
assert_raise RuntimeError, "Incompatible sources" do
5050
other_arg.location.join(recv.location)
5151
end
5252

53-
assert_raises RuntimeError, "Incompatible sources" do
53+
assert_raise RuntimeError, "Incompatible sources" do
5454
recv.location.join(other_arg.location)
5555
end
5656
end

0 commit comments

Comments
 (0)