[rubygems/rubygems] Avoid loading artifice when not necessary
https://github.com/rubygems/rubygems/commit/ef97ad37bd
This commit is contained in:
parent
7d5d2eef78
commit
6cefad7704
@ -32,11 +32,11 @@ RSpec.describe "Self management", rubygems: ">= 3.3.0.dev", realworld: true do
|
|||||||
expect(out).to eq("Removing bundler (#{Bundler::VERSION})")
|
expect(out).to eq("Removing bundler (#{Bundler::VERSION})")
|
||||||
|
|
||||||
# App now uses locked version
|
# App now uses locked version
|
||||||
bundle "-v"
|
bundle "-v", artifice: nil
|
||||||
expect(out).to end_with(previous_minor[0] == "2" ? "Bundler version #{previous_minor}" : previous_minor)
|
expect(out).to end_with(previous_minor[0] == "2" ? "Bundler version #{previous_minor}" : previous_minor)
|
||||||
|
|
||||||
# Subsequent installs use the locked version without reinstalling
|
# Subsequent installs use the locked version without reinstalling
|
||||||
bundle "install --verbose"
|
bundle "install --verbose", artifice: nil
|
||||||
expect(out).to include("Using bundler #{previous_minor}")
|
expect(out).to include("Using bundler #{previous_minor}")
|
||||||
expect(out).not_to include("Bundler #{Bundler::VERSION} is running, but your lockfile was generated with #{previous_minor}. Installing Bundler #{previous_minor} and restarting using that version.")
|
expect(out).not_to include("Bundler #{Bundler::VERSION} is running, but your lockfile was generated with #{previous_minor}. Installing Bundler #{previous_minor} and restarting using that version.")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user