diff options
Diffstat (limited to 'spec/bundler/install/gemfile')
-rw-r--r-- | spec/bundler/install/gemfile/gemspec_spec.rb | 3 | ||||
-rw-r--r-- | spec/bundler/install/gemfile/git_spec.rb | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/spec/bundler/install/gemfile/gemspec_spec.rb b/spec/bundler/install/gemfile/gemspec_spec.rb index c4a5ea9fe1..06ebf6c3e0 100644 --- a/spec/bundler/install/gemfile/gemspec_spec.rb +++ b/spec/bundler/install/gemfile/gemspec_spec.rb @@ -126,7 +126,8 @@ RSpec.describe "bundle install from an existing gemspec" do # ghost pass in future, and will only catch a regression if the message # doesn't change. Exit codes should be used correctly (they can be more # than just 0 and 1). - output = bundle("install --deployment", :dir => tmp.join("foo")) + bundle "config set --local deployment true" + output = bundle("install", :dir => tmp.join("foo")) expect(output).not_to match(/You have added to the Gemfile/) expect(output).not_to match(/You have deleted from the Gemfile/) expect(output).not_to match(/install in deployment mode after changing/) diff --git a/spec/bundler/install/gemfile/git_spec.rb b/spec/bundler/install/gemfile/git_spec.rb index 3c34bd4477..cc2da8bec4 100644 --- a/spec/bundler/install/gemfile/git_spec.rb +++ b/spec/bundler/install/gemfile/git_spec.rb @@ -124,7 +124,8 @@ RSpec.describe "bundle install with git sources" do end it "still works after moving the application directory" do - bundle "install --path vendor/bundle" + bundle "config --local path vendor/bundle" + bundle "install" FileUtils.mv bundled_app, tmp("bundled_app.bck") @@ -132,7 +133,8 @@ RSpec.describe "bundle install with git sources" do end it "can still install after moving the application directory" do - bundle "install --path vendor/bundle" + bundle "config --local path vendor/bundle" + bundle "install" FileUtils.mv bundled_app, tmp("bundled_app.bck") |