summaryrefslogtreecommitdiff
path: root/spec/bundler/install
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-23 17:32:33 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:30:00 +0900
commit2b7e39f364d76c74af6e04aa3d96888a6aeef1cd (patch)
tree5e7a8c37f3d6e3f753f307f0835e51fdaa74f035 /spec/bundler/install
parent267a72be800da0ec47f441d7d8210dc6aec137af (diff)
[bundler/bundler] Always set `cache_all` via config during tests
So that the behavior is the same regardless of the tested bundler version. https://github.com/bundler/bundler/commit/664549427a
Diffstat (limited to 'spec/bundler/install')
-rw-r--r--spec/bundler/install/deploy_spec.rb4
-rw-r--r--spec/bundler/install/gemfile/git_spec.rb3
2 files changed, 5 insertions, 2 deletions
diff --git a/spec/bundler/install/deploy_spec.rb b/spec/bundler/install/deploy_spec.rb
index 3fb6d28943..79a344eaa1 100644
--- a/spec/bundler/install/deploy_spec.rb
+++ b/spec/bundler/install/deploy_spec.rb
@@ -388,7 +388,9 @@ You have deleted from the Gemfile:
bundle! :install
expect(the_bundle).to include_gems "foo 1.0"
- bundle! :package, forgotten_command_line_options([:all, :cache_all] => true)
+
+ bundle "config set cache_all true"
+ bundle! :package
expect(bundled_app("vendor/cache/foo")).to be_directory
bundle! "install --local"
diff --git a/spec/bundler/install/gemfile/git_spec.rb b/spec/bundler/install/gemfile/git_spec.rb
index f2dcd33d7d..afcac8b153 100644
--- a/spec/bundler/install/gemfile/git_spec.rb
+++ b/spec/bundler/install/gemfile/git_spec.rb
@@ -1390,7 +1390,8 @@ In Gemfile:
gem 'foo'
end
G
- bundle :package, forgotten_command_line_options([:all, :cache_all] => true)
+ bundle "config set cache_all true"
+ bundle :package
simulate_new_machine
bundle! "install", :env => { "PATH" => "" }