Include FileUtils in spec_helper.
This commit is contained in:
parent
f0a512ace4
commit
8821cdc492
@ -44,6 +44,8 @@ RSpec.configure do |config|
|
|||||||
|
|
||||||
config.filter_run_when_matching :focus
|
config.filter_run_when_matching :focus
|
||||||
|
|
||||||
|
config.include(FileUtils)
|
||||||
|
|
||||||
config.include(RuboCop::RSpec::ExpectOffense)
|
config.include(RuboCop::RSpec::ExpectOffense)
|
||||||
|
|
||||||
config.include(Test::Helper::Fixtures)
|
config.include(Test::Helper::Fixtures)
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
describe Tap do
|
describe Tap do
|
||||||
include FileUtils
|
|
||||||
|
|
||||||
alias_matcher :have_formula_file, :be_formula_file
|
alias_matcher :have_formula_file, :be_formula_file
|
||||||
alias_matcher :have_custom_remote, :be_custom_remote
|
alias_matcher :have_custom_remote, :be_custom_remote
|
||||||
|
|
||||||
@ -307,8 +305,6 @@ describe Tap do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe CoreTap do
|
describe CoreTap do
|
||||||
include FileUtils
|
|
||||||
|
|
||||||
specify "attributes" do
|
specify "attributes" do
|
||||||
expect(subject.user).to eq("Homebrew")
|
expect(subject.user).to eq("Homebrew")
|
||||||
expect(subject.repo).to eq("core")
|
expect(subject.repo).to eq("core")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user