summaryrefslogtreecommitdiff
path: root/spec/other/cli_dispatch_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/other/cli_dispatch_spec.rb')
-rw-r--r--spec/other/cli_dispatch_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/other/cli_dispatch_spec.rb b/spec/other/cli_dispatch_spec.rb
index 05d313ef2b..a9d0bf7462 100644
--- a/spec/other/cli_dispatch_spec.rb
+++ b/spec/other/cli_dispatch_spec.rb
@@ -17,4 +17,13 @@ RSpec.describe "bundle command names" do
bundle "in"
expect(last_command.bundler_err).to eq("Ambiguous command in matches [info, init, inject, install]")
end
+
+ context "when cache_command_is_package is set" do
+ before { bundle! "config cache_command_is_package true" }
+
+ it "dispatches `bundle cache` to the package command" do
+ bundle "cache --verbose"
+ expect(last_command.stdout).to start_with "Running `bundle package --no-color --verbose`"
+ end
+ end
end