aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/test/Casks
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cask/test/Casks')
-rw-r--r--Library/Homebrew/cask/test/Casks/compliance_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/test/Casks/compliance_test.rb b/Library/Homebrew/cask/test/Casks/compliance_test.rb
new file mode 100644
index 000000000..fff3e0798
--- /dev/null
+++ b/Library/Homebrew/cask/test/Casks/compliance_test.rb
@@ -0,0 +1,14 @@
+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"
+ end
+ end
+ end
+end