summaryrefslogtreecommitdiff
path: root/spec/update
diff options
context:
space:
mode:
authorVasiliy Ermolovich <younash@gmail.com>2012-03-14 19:49:25 +0300
committerVasiliy Ermolovich <younash@gmail.com>2012-03-15 08:18:24 +0300
commitccd57accb407441e6fed2bde8160cc8ee8082206 (patch)
tree6e249fdca353bfde8f696ff39623cb0cb2f31eca /spec/update
parenta2a81b7538d91c87409fb9ea6844654298853c4c (diff)
downloadbundler-ccd57accb407441e6fed2bde8160cc8ee8082206.tar.gz
add --quiet option to bundle update, closes #1654
Diffstat (limited to 'spec/update')
-rw-r--r--spec/update/gems_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/update/gems_spec.rb b/spec/update/gems_spec.rb
index 282e13d8c6..8832f276d4 100644
--- a/spec/update/gems_spec.rb
+++ b/spec/update/gems_spec.rb
@@ -33,6 +33,18 @@ describe "bundle update" do
end
end
+ describe "--quiet argument" do
+ it 'shows UI messages without --quiet argument' do
+ bundle "update"
+ out.should include("Fetching source")
+ end
+
+ it 'does not show UI messages with --quiet argument' do
+ bundle "update --quiet"
+ out.should_not include("Fetching source")
+ end
+ end
+
describe "with a top level dependency" do
it "unlocks all child dependencies that are unrelated to other locked dependencies" do
update_repo2 do