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

Commit 53405e6

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/rspec/support/spec/library_wide_checks.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ 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+
end.join("\n")
7377
[stdout, stderr, status.exitstatus]
7478
end
7579

0 commit comments

Comments
 (0)