diff options
| author | Josh Hagins | 2016-10-19 12:35:12 -0400 |
|---|---|---|
| committer | Josh Hagins | 2016-10-19 12:35:47 -0400 |
| commit | fef8f143e8a97141b747e9288100d4e8dbd3fc19 (patch) | |
| tree | be120ba144d9aa8411aff6c6b146bcaffb39e2bc /Library | |
| parent | e8b6aa4ed16b662cf7a3847e6f7995ca8c8e0194 (diff) | |
| download | brew-fef8f143e8a97141b747e9288100d4e8dbd3fc19.tar.bz2 | |
compliance_test: unset HOMEBREW_DEVELOPER to avoid deprecation errors
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/test/Casks/compliance_test.rb | 16 | ||||
| -rw-r--r-- | Library/Homebrew/cask/test/test_helper.rb | 2 |
2 files changed, 11 insertions, 7 deletions
diff --git a/Library/Homebrew/cask/test/Casks/compliance_test.rb b/Library/Homebrew/cask/test/Casks/compliance_test.rb index fff3e0798..1ab5819ed 100644 --- a/Library/Homebrew/cask/test/Casks/compliance_test.rb +++ b/Library/Homebrew/cask/test/Casks/compliance_test.rb @@ -1,13 +1,15 @@ require 'test_helper' describe "Casks" do - Hbc.all.reject {|c| c.is_a?(Hbc::TestCask) }.each do |cask| - describe "#{cask}" do - it "passes audit" do - audit = Hbc::Audit.new(cask) - audit.run! - audit.errors.must_equal [], "[#{cask}] Cask audit must be error free" - audit.warnings.must_equal [], "[#{cask}] Cask audit must be warning free" + with_environment "HOMEBREW_DEVELOPER" => nil do + Hbc.all.reject {|c| c.is_a?(Hbc::TestCask) }.each do |cask| + describe "#{cask}" do + it "passes audit" do + audit = Hbc::Audit.new(cask) + audit.run! + audit.errors.must_equal [], "[#{cask}] Cask audit must be error free" + audit.warnings.must_equal [], "[#{cask}] Cask audit must be warning free" + end end end end diff --git a/Library/Homebrew/cask/test/test_helper.rb b/Library/Homebrew/cask/test/test_helper.rb index 25b32d2de..8f5e25777 100644 --- a/Library/Homebrew/cask/test/test_helper.rb +++ b/Library/Homebrew/cask/test/test_helper.rb @@ -17,7 +17,9 @@ require "global" # add Homebrew-Cask to load path $LOAD_PATH.push(project_root.join("lib").to_s) +require "test/helper/env" require "test/helper/shutup" +include Test::Helper::Env include Test::Helper::Shutup def sudo(*args) |
