Skip to content

Commit c4926bd

Browse files
committed
Fixup test_load_error_raised_implicitly with JRuby
1 parent 2336a00 commit c4926bd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/test_rake_rake_test_loader.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,8 @@ def test_load_error_raised_implicitly
5353
exc = assert_raises(LoadError) do
5454
load @loader
5555
end
56-
if RUBY_ENGINE == "jruby" && JRUBY_VERSION < "10.0.3"
57-
assert_equal "no such file to load -- superkalifragilisticoespialidoso", exc.message
58-
else
59-
assert_equal "cannot load such file -- superkalifragilisticoespialidoso", exc.message
60-
end
56+
57+
assert_match /.* -- superkalifragilisticoespialidoso/, exc.message
6158
end
6259
assert_empty out
6360
assert_empty err

0 commit comments

Comments
 (0)