diff --git a/test/test_rake_rake_test_loader.rb b/test/test_rake_rake_test_loader.rb index 6bde77d9c..a504159f1 100644 --- a/test/test_rake_rake_test_loader.rb +++ b/test/test_rake_rake_test_loader.rb @@ -53,7 +53,7 @@ def test_load_error_raised_implicitly exc = assert_raises(LoadError) do load @loader end - if RUBY_ENGINE == "jruby" + if RUBY_ENGINE == "jruby" && JRUBY_VERSION < "10.0.3" assert_equal "no such file to load -- superkalifragilisticoespialidoso", exc.message else assert_equal "cannot load such file -- superkalifragilisticoespialidoso", exc.message