aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-21 19:43:14 +0200
committerMarkus Reiter2017-10-24 19:39:40 +0200
commit8821cdc492bd3d7228962260208bcff25f2a808e (patch)
treee5d7668eb270bf69c9be93665328f6a2f796fecd
parentf0a512ace4f358df3c9daa0b1bb1f66b61179060 (diff)
downloadbrew-8821cdc492bd3d7228962260208bcff25f2a808e.tar.bz2
Include `FileUtils` in `spec_helper`.
-rw-r--r--Library/Homebrew/test/spec_helper.rb2
-rw-r--r--Library/Homebrew/test/tap_spec.rb4
2 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb
index 98d1f2511..c40a72fcc 100644
--- a/Library/Homebrew/test/spec_helper.rb
+++ b/Library/Homebrew/test/spec_helper.rb
@@ -44,6 +44,8 @@ RSpec.configure do |config|
config.filter_run_when_matching :focus
+ config.include(FileUtils)
+
config.include(RuboCop::RSpec::ExpectOffense)
config.include(Test::Helper::Fixtures)
diff --git a/Library/Homebrew/test/tap_spec.rb b/Library/Homebrew/test/tap_spec.rb
index 76af27b92..cb908da9f 100644
--- a/Library/Homebrew/test/tap_spec.rb
+++ b/Library/Homebrew/test/tap_spec.rb
@@ -1,6 +1,4 @@
describe Tap do
- include FileUtils
-
alias_matcher :have_formula_file, :be_formula_file
alias_matcher :have_custom_remote, :be_custom_remote
@@ -307,8 +305,6 @@ describe Tap do
end
describe CoreTap do
- include FileUtils
-
specify "attributes" do
expect(subject.user).to eq("Homebrew")
expect(subject.repo).to eq("core")