[rubygems/rubygems] Dont't use Bundler::VERSION

https://github.com/rubygems/rubygems/commit/46cd9be69a
This commit is contained in:
Hiroshi SHIBATA 2023-07-12 16:38:09 +09:00
Родитель d3305cab44
Коммит 8cf5297ba5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -6,6 +6,10 @@ RSpec.describe "Self management", :rubygems => ">= 3.3.0.dev", :realworld => tru
"2.3.0"
end
let(:current_version) do
"2.4.0"
end
before do
build_repo2
@ -104,14 +108,14 @@ RSpec.describe "Self management", :rubygems => ">= 3.3.0.dev", :realworld => tru
end
it "installs BUNDLE_VERSION version when using bundle config version x.y.z" do
lockfile_bundled_with(Bundler::VERSION.gsub(/\.dev/, ""))
lockfile_bundled_with(current_version)
bundle "config set --local version #{previous_minor}"
bundle "install", :artifice => "vcr"
expect(out).to include("Bundler #{Bundler::VERSION} is running, but your configuration was #{previous_minor}. Installing Bundler #{previous_minor} and restarting using that version.")
bundle "-v"
expect(out).to eq(Bundler::VERSION[0] == "2" ? "Bundler version #{previous_minor}" : previous_minor)
expect(out).to eq(previous_minor[0] == "2" ? "Bundler version #{previous_minor}" : previous_minor)
end
it "does not try to install when using bundle config version global" do