aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cask/cli
diff options
context:
space:
mode:
authorMarkus Reiter2017-07-06 01:08:59 +0200
committerMarkus Reiter2017-07-07 19:42:03 +0200
commitd29cb450f729fc88ba045c68e3b70e86cdecfaec (patch)
tree7581133b5ef4707c5e29b1e2b9841e76c4981d5f /Library/Homebrew/test/cask/cli
parent8ec08479ae71a849ea1e648ccda7a85771c14d01 (diff)
downloadbrew-d29cb450f729fc88ba045c68e3b70e86cdecfaec.tar.bz2
Output plain list when running `brew cask search` without a TTY.
Diffstat (limited to 'Library/Homebrew/test/cask/cli')
-rw-r--r--Library/Homebrew/test/cask/cli/search_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cask/cli/search_spec.rb b/Library/Homebrew/test/cask/cli/search_spec.rb
index 00fcf7382..c382614a4 100644
--- a/Library/Homebrew/test/cask/cli/search_spec.rb
+++ b/Library/Homebrew/test/cask/cli/search_spec.rb
@@ -1,4 +1,8 @@
describe Hbc::CLI::Search, :cask do
+ before(:each) do
+ allow($stdout).to receive(:tty?).and_return(true)
+ end
+
it "lists the available Casks that match the search term" do
expect {
Hbc::CLI::Search.run("local")