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

Commit c1ef271

Browse files
committed
Ignore bundler warnings on windows
1 parent c47d864 commit c1ef271

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/rspec/support/spec/library_wide_checks.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,13 @@ def load_all_files(files, preamble, postamble=nil)
6868
run_ruby_with_current_load_path(command, *options)
6969
end
7070

71-
# Ignore bundler warning.
72-
stderr = stderr.split("\n").reject { |l| l =~ %r{bundler/source/rubygems} }.join("\n")
71+
stderr = stderr.split("\n").reject do |l|
72+
# Ignore bundler warning.
73+
l =~ %r{bundler/(source/)?rubygems} ||
74+
# Ignore bundler + rubygems warning.
75+
l =~ %r{site_ruby/\d\.\d\.\d/rubygems} ||
76+
l =~ %r{lib/bundler/rubygems}
77+
end.join("\n")
7378
[stdout, stderr, status.exitstatus]
7479
end
7580

0 commit comments

Comments
 (0)