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