diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-07-19 17:29:40 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-07-19 17:29:40 -0500 |
commit | 183b9f74f3f9767968cdc1eb2b99fd5c8fb0db78 (patch) | |
tree | 5780015f63f978a3f5852fd3305f3ff1129e3d76 | |
parent | e12fe9e6c81326f5f5984a343e05ade63f29c1ca (diff) | |
download | bundler-seg-print-command.tar.gz |
[CLI] Add specs for printing the running commandseg-print-command
-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 |