Skip to content

Commit

Permalink
[rubygems/rubygems] Fix a couple of specs that were loading an incorr…
Browse files Browse the repository at this point in the history
…ect bundler

We have a check on an `at_exit` hook that checks that system bundler is
never loaded instead of our development copy. The check was failing in
these cases, but in a silent way because the errors were being swallowed.

This commit changes these specs to make sure they load the right
bundler.

rubygems/rubygems@cd1c1bc297
  • Loading branch information
deivid-rodriguez authored and hsbt committed Jun 18, 2020
1 parent 5d78fb1 commit 529a9e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/bundler/lock/lockfile_spec.rb
Expand Up @@ -1438,7 +1438,7 @@ def set_lockfile_mtime_to_known_value

expect do
ruby <<-RUBY
require 'bundler'
require '#{lib_dir}/bundler'
Bundler.setup
RUBY
end.not_to change { File.mtime(bundled_app_lock) }
Expand Down
2 changes: 1 addition & 1 deletion spec/bundler/runtime/platform_spec.rb
Expand Up @@ -22,7 +22,7 @@

ruby <<-R
begin
require 'bundler'
require '#{lib_dir}/bundler'
Bundler.ui.silence { Bundler.setup }
rescue Bundler::GemNotFound => e
puts "WIN"
Expand Down

0 comments on commit 529a9e8

Please sign in to comment.