File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,18 +39,18 @@ def test_location_join
39
39
assert_equal 0 , joined . start_offset
40
40
assert_equal 10 , joined . length
41
41
42
- assert_raises RuntimeError , "Incompatible locations" do
42
+ assert_raise RuntimeError , "Incompatible locations" do
43
43
arg . location . join ( recv . location )
44
44
end
45
45
46
46
other_recv , other_args_node , _ = parse_expression ( "1234 + 567" ) . child_nodes
47
47
other_arg = other_args_node . arguments [ 0 ]
48
48
49
- assert_raises RuntimeError , "Incompatible sources" do
49
+ assert_raise RuntimeError , "Incompatible sources" do
50
50
other_arg . location . join ( recv . location )
51
51
end
52
52
53
- assert_raises RuntimeError , "Incompatible sources" do
53
+ assert_raise RuntimeError , "Incompatible sources" do
54
54
recv . location . join ( other_arg . location )
55
55
end
56
56
end
You can’t perform that action at this time.
0 commit comments