aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorXu Cheng2016-02-26 17:18:30 +0800
committerXu Cheng2016-02-26 18:42:36 +0800
commiteb6f970b907383b0f1787e2a9c6f5f74fd6f7464 (patch)
treefe4621dacc9ed8c7405d9cface9102f04cdd81df /Library/Homebrew/test
parent43c6061bc95d8e21803b227181f716e6926e28f4 (diff)
downloadbrew-eb6f970b907383b0f1787e2a9c6f5f74fd6f7464.tar.bz2
tap: support --quieter flag
Closes Homebrew/homebrew#49551. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb
index ffdcaa8b5..530c9aa13 100644
--- a/Library/Homebrew/test/test_integration_cmds.rb
+++ b/Library/Homebrew/test/test_integration_cmds.rb
@@ -205,6 +205,7 @@ class IntegrationCommandTests < Homebrew::TestCase
shutup do
system "git", "init"
system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew-foo"
+ FileUtils.touch "readme"
system "git", "add", "--all"
system "git", "commit", "-m", "init"
end
@@ -220,6 +221,8 @@ class IntegrationCommandTests < Homebrew::TestCase
assert_match "Unpinned homebrew/foo", cmd("tap-unpin", "homebrew/foo")
assert_match "Tapped", cmd("tap", "homebrew/bar", path/".git")
assert_match "Untapped", cmd("untap", "homebrew/bar")
+ assert_equal "", cmd("tap", "homebrew/bar", path/".git", "-q", "--full")
+ assert_match "Untapped", cmd("untap", "homebrew/bar")
ensure
Tap::TAP_DIRECTORY.rmtree
end