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

Commit efb9add

Browse files
authored
Merge pull request #370 from rspec/ignore-warning-on-jruby
JRuby 9.1.7.0 produces a warning from rubygems, ignore it
2 parents 6bb1d84 + c29b35b commit efb9add

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/rspec/support/spec/shell_out.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,15 @@ 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} ||
69+
# Remove blank lines
70+
l == "" || l.nil?
6671
end.join("\n")
6772
end
6873

0 commit comments

Comments
 (0)