aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/test/Casks
diff options
context:
space:
mode:
authorJosh Hagins2016-10-19 16:42:31 -0400
committerJosh Hagins2016-10-19 22:15:18 -0400
commitcba0d069cc25cfb4c909eb3887d941f268f83178 (patch)
tree283dde29fbc8a3eb499144b6c59b0f552e4b5df4 /Library/Homebrew/cask/test/Casks
parentf79cb2ba307271645aaa6cc37fc3b4d3c16ebe62 (diff)
downloadbrew-cba0d069cc25cfb4c909eb3887d941f268f83178.tar.bz2
cask/test: DRY up tests and remove redundant helper
Diffstat (limited to 'Library/Homebrew/cask/test/Casks')
-rw-r--r--Library/Homebrew/cask/test/Casks/compliance_test.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Homebrew/cask/test/Casks/compliance_test.rb b/Library/Homebrew/cask/test/Casks/compliance_test.rb
index 1ab5819ed..9fa9fc99f 100644
--- a/Library/Homebrew/cask/test/Casks/compliance_test.rb
+++ b/Library/Homebrew/cask/test/Casks/compliance_test.rb
@@ -2,13 +2,15 @@ require 'test_helper'
describe "Casks" do
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"
+ shutup 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