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
|
needs_compat
|
||||||
require "compat/formula_specialties"
|
require "compat/formula_specialties"
|
||||||
|
|
||||||
fa = formula_auditor "foo", <<-EOS.undent
|
ARGV.stubs(:homebrew_developer?).returns false
|
||||||
class Foo < GithubGistFormula
|
fa = shutup do
|
||||||
url "http://example.com/foo-1.0.tgz"
|
formula_auditor "foo", <<-EOS.undent
|
||||||
end
|
class Foo < GithubGistFormula
|
||||||
EOS
|
url "http://example.com/foo-1.0.tgz"
|
||||||
|
end
|
||||||
|
EOS
|
||||||
|
end
|
||||||
fa.audit_class
|
fa.audit_class
|
||||||
assert_equal ["GithubGistFormula is deprecated, use Formula instead"],
|
assert_equal ["GithubGistFormula is deprecated, use Formula instead"],
|
||||||
fa.problems
|
fa.problems
|
||||||
@ -268,6 +271,7 @@ class FormulaAuditorTests < Homebrew::TestCase
|
|||||||
needs_compat
|
needs_compat
|
||||||
require "compat/formula_specialties"
|
require "compat/formula_specialties"
|
||||||
|
|
||||||
|
ARGV.stubs(:homebrew_developer?).returns false
|
||||||
fa = formula_auditor "foo", <<-EOS.undent
|
fa = formula_auditor "foo", <<-EOS.undent
|
||||||
class Foo < ScriptFileFormula
|
class Foo < ScriptFileFormula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "http://example.com/foo-1.0.tgz"
|
||||||
@ -282,6 +286,7 @@ class FormulaAuditorTests < Homebrew::TestCase
|
|||||||
needs_compat
|
needs_compat
|
||||||
require "compat/formula_specialties"
|
require "compat/formula_specialties"
|
||||||
|
|
||||||
|
ARGV.stubs(:homebrew_developer?).returns false
|
||||||
fa = formula_auditor "foo", <<-EOS.undent
|
fa = formula_auditor "foo", <<-EOS.undent
|
||||||
class Foo < AmazonWebServicesFormula
|
class Foo < AmazonWebServicesFormula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "http://example.com/foo-1.0.tgz"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user