From 2b7e39f364d76c74af6e04aa3d96888a6aeef1cd Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Tue, 23 Jul 2019 17:32:33 +0200 Subject: [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 --- spec/bundler/commands/package_spec.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'spec/bundler/commands/package_spec.rb') diff --git a/spec/bundler/commands/package_spec.rb b/spec/bundler/commands/package_spec.rb index e051743fd0..da22c002eb 100644 --- a/spec/bundler/commands/package_spec.rb +++ b/spec/bundler/commands/package_spec.rb @@ -24,7 +24,8 @@ RSpec.describe "bundle package" do gem 'bundler' D - bundle :package, forgotten_command_line_options([:all, :cache_all] => true) + bundle "config set cache_all true" + bundle :package expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist expect(bundled_app("vendor/cache/bundler-0.9.gem")).to_not exist @@ -54,7 +55,8 @@ RSpec.describe "bundle package" do gemspec D - bundle! :package, forgotten_command_line_options([:all, :cache_all] => true) + bundle "config set cache_all true" + bundle! :package expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist expect(bundled_app("vendor/cache/nokogiri-1.4.2.gem")).to exist @@ -85,7 +87,8 @@ RSpec.describe "bundle package" do gemspec D - bundle! :package, forgotten_command_line_options([:all, :cache_all] => true) + bundle "config set cache_all true" + bundle! :package expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist expect(bundled_app("vendor/cache/nokogiri-1.4.2.gem")).to exist @@ -129,7 +132,8 @@ RSpec.describe "bundle package" do gemspec :name => 'mygem_test' D - bundle! :package, forgotten_command_line_options([:all, :cache_all] => true) + bundle "config set cache_all true" + bundle! :package expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist expect(bundled_app("vendor/cache/nokogiri-1.4.2.gem")).to exist -- cgit v1.2.3