diff options
author | Andre Arko <andre@arko.net> | 2014-10-20 00:06:40 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-10-20 00:37:14 -0700 |
commit | ca0676cb1c638e0b9747ea8c18f28adf82cc01de (patch) | |
tree | 93dc1ba866378b05d5bd0ea1667536eef22d7ca1 /spec/install | |
parent | fc273b9b192a29037a4edeb6cad1e1140c857af6 (diff) | |
download | bundler-ca0676cb1c638e0b9747ea8c18f28adf82cc01de.tar.gz |
hide all warnings when in --quiet mode
fixes #3186
Diffstat (limited to 'spec/install')
-rw-r--r-- | spec/install/gems/simple_case_spec.rb | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/spec/install/gems/simple_case_spec.rb b/spec/install/gems/simple_case_spec.rb index 7fbd9e0e..aac70db6 100644 --- a/spec/install/gems/simple_case_spec.rb +++ b/spec/install/gems/simple_case_spec.rb @@ -291,7 +291,7 @@ describe "bundle install with gem sources" do G bundle :install, :expect_err => true - expect(out).to match(/Your Gemfile has no gem server sources/i) + expect(out).to include("Your Gemfile has no gem server sources") end it "creates a Gemfile.lock on a blank Gemfile" do @@ -363,23 +363,14 @@ describe "bundle install with gem sources" do end describe "when requesting a quiet install via --quiet" do - it "should be quiet if there are no warnings" do - gemfile <<-G - source "file://#{gem_repo1}" - gem 'rack' - G - - bundle :install, :quiet => true - expect(out).to eq("") - end - - it "should still display warnings" do + it "should be quiet" do gemfile <<-G gem 'rack' G bundle :install, :quiet => true - expect(out).to match(/Your Gemfile has no gem server sources/) + expect(out).to include("Could not find gem 'rack (>= 0) ruby'") + expect(out).to_not include("Your Gemfile has no gem server sources") end end |