Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit fc6cf03

Browse files
committed
JRuby 9.1.7.0 produces a warning from rubygems, ignore it
1 parent 6bb1d84 commit fc6cf03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/rspec/support/spec/shell_out.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,13 @@ def strip_known_warnings(input)
5959
l =~ %r{bundler/source/rubygems} ||
6060
# Ignore bundler + rubygems warning.
6161
l =~ %r{site_ruby/\d\.\d\.\d/rubygems} ||
62+
l =~ %r{jruby-\d\.\d\.\d\.\d/lib/ruby/stdlib/rubygems} ||
6263
# This is required for windows for some reason
6364
l =~ %r{lib/bundler/rubygems} ||
6465
# This is a JRuby file that generates warnings on 9.0.3.0
65-
l =~ %r{lib/ruby/stdlib/jar}
66+
l =~ %r{lib/ruby/stdlib/jar} ||
67+
# This is a JRuby file that generates warnings on 9.1.7.0
68+
l =~ %r{org/jruby/RubyKernel\.java}
6669
end.join("\n")
6770
end
6871

0 commit comments

Comments
 (0)