aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cask
diff options
context:
space:
mode:
authorMike McQuaid2018-02-12 20:50:34 +0000
committerGitHub2018-02-12 20:50:34 +0000
commitb3f0e571f4cdcc29dd6982b863fdcd7de5e6febf (patch)
tree8385418921e394d17a57d368835a0640a1bec171 /Library/Homebrew/test/cask
parent602696bcb8823e8a24aa87d646aef8c6a108ce4b (diff)
parent7388acb86e0b9811e6badd610255954b3b3a6453 (diff)
downloadbrew-b3f0e571f4cdcc29dd6982b863fdcd7de5e6febf.tar.bz2
Merge pull request #3090 from jcs/no_color
Tty: if NO_COLOR env var is present, disable color
Diffstat (limited to 'Library/Homebrew/test/cask')
-rw-r--r--Library/Homebrew/test/cask/dsl_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cask/dsl_spec.rb b/Library/Homebrew/test/cask/dsl_spec.rb
index d3bb46264..993c03bac 100644
--- a/Library/Homebrew/test/cask/dsl_spec.rb
+++ b/Library/Homebrew/test/cask/dsl_spec.rb
@@ -75,6 +75,7 @@ describe Hbc::DSL, :cask do
it "may use deprecated DSL version hash syntax" do
allow(ENV).to receive(:[]).with("HOMEBREW_DEVELOPER").and_return(nil)
+ allow(ENV).to receive(:[]).with("HOMEBREW_NO_COLOR").and_return(nil)
expect(cask.token).to eq("with-dsl-version")
expect(cask.url.to_s).to eq("http://example.com/TestCask.dmg")