aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
-rw-r--r--Library/Homebrew/test/testing_env.rb4
1 files changed, 4 insertions, 0 deletions
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