summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-23 22:10:48 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-31 15:56:45 +0100
commit4b1c59ee641287e0932a856cb5cece121856376e (patch)
tree612f98f9e3cf16f46c567f69b7b352876c8c364e
parentc0b3f9e96d8bbb7633c77bfbf906d29edfc8a107 (diff)
downloadbundler-4b1c59ee641287e0932a856cb5cece121856376e.tar.gz
Add missing specs
-rw-r--r--spec/install/deploy_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/install/deploy_spec.rb b/spec/install/deploy_spec.rb
index b55eeeb28f..f31257fac3 100644
--- a/spec/install/deploy_spec.rb
+++ b/spec/install/deploy_spec.rb
@@ -180,6 +180,16 @@ RSpec.describe "install with --deployment or --frozen" do
bundle! "install"
end
+ it "installs gems by default to vendor/bundle", :bundler => "< 3" do
+ bundle! "install --deployment"
+ expect(out).to include("vendor/bundle")
+ end
+
+ it "installs gems to custom path if specified", :bundler => "< 3" do
+ bundle! "install --path vendor/bundle2 --deployment"
+ expect(out).to include("vendor/bundle2")
+ end
+
it "works with the --deployment flag if you didn't change anything", :bundler => "< 3" do
bundle! "install --deployment"
end