diff options
-rw-r--r-- | spec/bundler/cli_spec.rb | 7 | ||||
-rw-r--r-- | spec/other/trampoline_spec.rb | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/spec/bundler/cli_spec.rb b/spec/bundler/cli_spec.rb index 3fe4938f97..2237ee9731 100644 --- a/spec/bundler/cli_spec.rb +++ b/spec/bundler/cli_spec.rb @@ -54,6 +54,13 @@ describe "bundle executable" do expect(out).not_to include("RUBYGEMS_GEMDEPS") end end + + context "with --verbose" do + it "prints the running command" do + bundle! "config", :verbose => true + expect(out).to start_with("Running `bundle config --verbose` with bundler #{Bundler::VERSION}") + end + end end describe "bundler executable" do diff --git a/spec/other/trampoline_spec.rb b/spec/other/trampoline_spec.rb index 2be0c9c3e9..a498e1219e 100644 --- a/spec/other/trampoline_spec.rb +++ b/spec/other/trampoline_spec.rb @@ -150,4 +150,11 @@ You're running Bundler #{Bundler::VERSION} but this project uses #{ENV["BUNDLER_ WARN end end + + context "with --verbose" do + it "prints the running command" do + bundle! "config", :verbose => true, :env => { "BUNDLE_POSTIT_TRAMPOLINING_VERSION" => Bundler::VERSION } + expect(out).to start_with("Running `bundle config --verbose` with bundler #{Bundler::VERSION}") + end + end end |