[rubygems/rubygems] Unexclude some specs on bundler 3

These should all be passing on Bundler 3.

https://github.com/rubygems/rubygems/commit/4a8c172965
This commit is contained in:
David Rodríguez 2023-05-26 21:53:34 +02:00 committed by Hiroshi SHIBATA
parent 6353f1d5e8
commit 7b317243ad

View File

@ -318,7 +318,7 @@ RSpec.describe "install in deployment or frozen mode" do
expect(err).to include("The path `#{lib_path("path_gem-1.0")}` does not exist.") expect(err).to include("The path `#{lib_path("path_gem-1.0")}` does not exist.")
end end
it "can have --frozen set via an environment variable", :bundler => "< 3" do it "can have --frozen set via an environment variable" do
gemfile <<-G gemfile <<-G
source "#{file_uri_for(gem_repo1)}" source "#{file_uri_for(gem_repo1)}"
gem "rack" gem "rack"
@ -350,13 +350,13 @@ RSpec.describe "install in deployment or frozen mode" do
expect(err).not_to include("You have changed in the Gemfile") expect(err).not_to include("You have changed in the Gemfile")
end end
it "installs gems by default to vendor/bundle when deployment mode is set via an environment variable", :bundler => "< 3" do it "installs gems by default to vendor/bundle when deployment mode is set via an environment variable" do
ENV["BUNDLE_DEPLOYMENT"] = "true" ENV["BUNDLE_DEPLOYMENT"] = "true"
bundle "install" bundle "install"
expect(out).to include("vendor/bundle") expect(out).to include("vendor/bundle")
end end
it "installs gems to custom path when deployment mode is set via an environment variable ", :bundler => "< 3" do it "installs gems to custom path when deployment mode is set via an environment variable " do
ENV["BUNDLE_DEPLOYMENT"] = "true" ENV["BUNDLE_DEPLOYMENT"] = "true"
ENV["BUNDLE_PATH"] = "vendor/bundle2" ENV["BUNDLE_PATH"] = "vendor/bundle2"
bundle "install" bundle "install"