diff options
| author | Baptiste Fontaine | 2016-01-21 13:05:14 +0100 |
|---|---|---|
| committer | Baptiste Fontaine | 2016-01-25 01:26:24 +0100 |
| commit | d0998a4907f96d7d85f6efb812bc5a11d71f68a5 (patch) | |
| tree | 8b7da6fe9dce33b13452b161fd275cb140e50357 /Library | |
| parent | 7b4c43e51205b975985dbebe8a2a6fd8e87bb6ad (diff) | |
| download | brew-d0998a4907f96d7d85f6efb812bc5a11d71f68a5.tar.bz2 | |
testing_env: needs_compat utility added
Closes Homebrew/homebrew#48302.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_cmd_audit.rb | 9 | ||||
| -rw-r--r-- | Library/Homebrew/test/testing_env.rb | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_cmd_audit.rb b/Library/Homebrew/test/test_cmd_audit.rb index 20df333ba..16c0426ed 100644 --- a/Library/Homebrew/test/test_cmd_audit.rb +++ b/Library/Homebrew/test/test_cmd_audit.rb @@ -216,6 +216,9 @@ class FormulaAuditorTests < Homebrew::TestCase end def test_audit_class_github_gist_formula + needs_compat + require "compat/formula_specialties" + fa = formula_auditor "foo", <<-EOS.undent class Foo < GithubGistFormula url "http://example.com/foo-1.0.tgz" @@ -227,6 +230,9 @@ class FormulaAuditorTests < Homebrew::TestCase end def test_audit_class_script_file_formula + needs_compat + require "compat/formula_specialties" + fa = formula_auditor "foo", <<-EOS.undent class Foo < ScriptFileFormula url "http://example.com/foo-1.0.tgz" @@ -238,6 +244,9 @@ class FormulaAuditorTests < Homebrew::TestCase end def test_audit_class_aws_formula + needs_compat + require "compat/formula_specialties" + fa = formula_auditor "foo", <<-EOS.undent class Foo < AmazonWebServicesFormula url "http://example.com/foo-1.0.tgz" diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb index bca841f7f..2aaf20c3f 100644 --- a/Library/Homebrew/test/testing_env.rb +++ b/Library/Homebrew/test/testing_env.rb @@ -93,6 +93,10 @@ module Homebrew Dir.mktmpdir(prefix_suffix, HOMEBREW_TEMP, &block) end + def needs_compat + skip "Requires compat/ code" if ENV["HOMEBREW_NO_COMPAT"] + end + def assert_nothing_raised yield end |
