From 7388acb86e0b9811e6badd610255954b3b3a6453 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Mon, 12 Feb 2018 11:06:55 -0600 Subject: Tty: if HOMEBREW_NO_COLOR env var is present, disable color bin/brew will recognize NO_COLOR variable and copy it to HOMEBREW_NO_COLOR --- Library/Homebrew/test/cask/dsl_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Homebrew/test/cask') 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") -- cgit v1.2.3