aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/spec_helper.rb')
-rw-r--r--Library/Homebrew/test/spec_helper.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb
index a5821ee14..c40a72fcc 100644
--- a/Library/Homebrew/test/spec_helper.rb
+++ b/Library/Homebrew/test/spec_helper.rb
@@ -2,6 +2,8 @@ require "find"
require "pathname"
require "rspec/its"
require "rspec/wait"
+require "rubocop"
+require "rubocop/rspec/support"
require "set"
if ENV["HOMEBREW_TESTS_COVERAGE"]
@@ -23,7 +25,6 @@ require "test/support/helper/fixtures"
require "test/support/helper/formula"
require "test/support/helper/mktmpdir"
require "test/support/helper/output_as_tty"
-require "test/support/helper/rubocop"
require "test/support/helper/spec/shared_context/homebrew_cask" if OS.mac?
require "test/support/helper/spec/shared_context/integration_test"
@@ -43,11 +44,14 @@ RSpec.configure do |config|
config.filter_run_when_matching :focus
+ config.include(FileUtils)
+
+ config.include(RuboCop::RSpec::ExpectOffense)
+
config.include(Test::Helper::Fixtures)
config.include(Test::Helper::Formula)
config.include(Test::Helper::MkTmpDir)
config.include(Test::Helper::OutputAsTTY)
- config.include(Test::Helper::RuboCop)
config.before(:each, :needs_compat) do
skip "Requires compatibility layer." if ENV["HOMEBREW_NO_COMPAT"]