test_cmd_audit: don't print compat warnings.
This commit is contained in:
parent
aadd465712
commit
81b034a577
@ -254,11 +254,14 @@ class FormulaAuditorTests < Homebrew::TestCase
|
||||
needs_compat
|
||||
require "compat/formula_specialties"
|
||||
|
||||
fa = formula_auditor "foo", <<-EOS.undent
|
||||
ARGV.stubs(:homebrew_developer?).returns false
|
||||
fa = shutup do
|
||||
formula_auditor "foo", <<-EOS.undent
|
||||
class Foo < GithubGistFormula
|
||||
url "http://example.com/foo-1.0.tgz"
|
||||
end
|
||||
EOS
|
||||
end
|
||||
fa.audit_class
|
||||
assert_equal ["GithubGistFormula is deprecated, use Formula instead"],
|
||||
fa.problems
|
||||
@ -268,6 +271,7 @@ class FormulaAuditorTests < Homebrew::TestCase
|
||||
needs_compat
|
||||
require "compat/formula_specialties"
|
||||
|
||||
ARGV.stubs(:homebrew_developer?).returns false
|
||||
fa = formula_auditor "foo", <<-EOS.undent
|
||||
class Foo < ScriptFileFormula
|
||||
url "http://example.com/foo-1.0.tgz"
|
||||
@ -282,6 +286,7 @@ class FormulaAuditorTests < Homebrew::TestCase
|
||||
needs_compat
|
||||
require "compat/formula_specialties"
|
||||
|
||||
ARGV.stubs(:homebrew_developer?).returns false
|
||||
fa = formula_auditor "foo", <<-EOS.undent
|
||||
class Foo < AmazonWebServicesFormula
|
||||
url "http://example.com/foo-1.0.tgz"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user