mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Change spec to do the right thing on bundler 3
On bundler 3, the `--deployment` flag doesn't exist, so the `bundle install --deployment` command was failing silently and the spec was verifying a different scenario. Change the spec to work the same regardless of bundler's major version. Also, from the spec description it was not apparently that a specific case involving deployment mode was being tested, so I reworded it to make it more apparent. https://github.com/rubygems/rubygems/commit/3e33e2b927
This commit is contained in:
parent
974c40c842
commit
5d78fb1c9a
Notes:
git
2020-06-18 19:15:19 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -279,13 +279,13 @@ RSpec.describe "Bundler.setup" do
|
|||
end
|
||||
|
||||
context "an absolute path is not provided" do
|
||||
it "uses BUNDLE_GEMFILE to locate the gemfile if present" do
|
||||
it "uses BUNDLE_GEMFILE to locate the gemfile if present and doesn't fail in deployment mode" do
|
||||
gemfile <<-G
|
||||
source "#{file_uri_for(gem_repo1)}"
|
||||
G
|
||||
|
||||
bundle "install"
|
||||
bundle "install --deployment"
|
||||
bundle "config set --local deployment true"
|
||||
|
||||
ENV["BUNDLE_GEMFILE"] = "Gemfile"
|
||||
ruby <<-R
|
||||
|
|
Loading…
Add table
Reference in a new issue