diff options
Diffstat (limited to 'spec/bundler/cli_spec.rb')
-rw-r--r-- | spec/bundler/cli_spec.rb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/spec/bundler/cli_spec.rb b/spec/bundler/cli_spec.rb index 2ef2eb3412..5283027ca0 100644 --- a/spec/bundler/cli_spec.rb +++ b/spec/bundler/cli_spec.rb @@ -57,8 +57,9 @@ RSpec.describe "bundle executable" do context "with --verbose" do it "prints the running command" do - bundle! "config", :verbose => true - expect(last_command.stdout).to start_with("Running `bundle config --verbose` with bundler #{Bundler::VERSION}") + gemfile "" + bundle! "info bundler", :verbose => true + expect(last_command.stdout).to start_with("Running `bundle info bundler --no-color --verbose` with bundler #{Bundler::VERSION}") end it "doesn't print defaults" do @@ -120,6 +121,16 @@ To update, run `gem install bundler` include_examples "no warning" end + context "running a parseable command" do + it "prints no warning" do + bundle! "config --parseable foo" + expect(last_command.stdboth).to eq "" + + bundle "platform --ruby" + expect(last_command.stdboth).to eq "Could not locate Gemfile" + end + end + context "and is a pre-release" do let(:latest_version) { "2.0.0.pre.4" } it "prints the version warning" do |