Browse Source

Merge pull request #647 from rolandwalker/tests_hbc_namespace

adjust tests for new Hbc:: namespace
master
Roland Walker 10 years ago
parent
commit
9b44989023
  1. 4
      test/Casks/compliance_test.rb
  2. 2
      test/test_helper.rb

4
test/Casks/compliance_test.rb

@ -1,10 +1,10 @@
require 'test_helper'
describe "Casks" do
Cask.all.each do |cask|
Hbc.all.each do |cask|
describe "#{cask}" do
it "passes audit" do
audit = Cask::Audit.new(cask)
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"

2
test/test_helper.rb

@ -24,7 +24,7 @@ require 'minitest/autorun'
# require 'minitest-colorize'
# our baby
require 'cask'
require 'hbc'
# pretend like we installed the cask tap
project_root = Pathname.new(File.expand_path("#{File.dirname(__FILE__)}/../"))

Loading…
Cancel
Save