summaryrefslogtreecommitdiff
path: root/spec/install
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-10-20 13:26:11 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-10-20 17:49:14 +0200
commitc9f6d2b4c5e540ba6a165c7a58432bf0081a7e32 (patch)
tree09de741504c82640e8a34f18932904db6ba5327a /spec/install
parentc15f4a67432be1c125a606016c1db0fbdfe7f665 (diff)
downloadbundler-c9f6d2b4c5e540ba6a165c7a58432bf0081a7e32.tar.gz
Normalize "bundle cache" vs "bundle package"normalize_bundle_cache
Use the preferred `bundle cache` everywhere, but leave package as an alias. Remove duplicated tests.
Diffstat (limited to 'spec/install')
-rw-r--r--spec/install/deploy_spec.rb2
-rw-r--r--spec/install/gemfile/git_spec.rb2
-rw-r--r--spec/install/gemfile/sources_spec.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/install/deploy_spec.rb b/spec/install/deploy_spec.rb
index 79a344eaa1..d607f8bb46 100644
--- a/spec/install/deploy_spec.rb
+++ b/spec/install/deploy_spec.rb
@@ -390,7 +390,7 @@ You have deleted from the Gemfile:
expect(the_bundle).to include_gems "foo 1.0"
bundle "config set cache_all true"
- bundle! :package
+ bundle! :cache
expect(bundled_app("vendor/cache/foo")).to be_directory
bundle! "install --local"
diff --git a/spec/install/gemfile/git_spec.rb b/spec/install/gemfile/git_spec.rb
index 014724a292..08789820d8 100644
--- a/spec/install/gemfile/git_spec.rb
+++ b/spec/install/gemfile/git_spec.rb
@@ -1391,7 +1391,7 @@ In Gemfile:
end
G
bundle "config set cache_all true"
- bundle :package
+ bundle :cache
simulate_new_machine
bundle! "install", :env => { "PATH" => "" }
diff --git a/spec/install/gemfile/sources_spec.rb b/spec/install/gemfile/sources_spec.rb
index b2861e1c00..61943ef2e5 100644
--- a/spec/install/gemfile/sources_spec.rb
+++ b/spec/install/gemfile/sources_spec.rb
@@ -102,7 +102,7 @@ RSpec.describe "bundle install with gems on multiple sources" do
end
it "can cache and deploy" do
- bundle! :package
+ bundle! :cache
expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
expect(bundled_app("vendor/cache/rack-obama-1.0.gem")).to exist