Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused stuff from spec_helper. #741

Merged
merged 1 commit into from
Sep 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
require 'rubocop'
require 'rubocop/rspec/support'

module SpecHelper
ROOT = Pathname.new(__dir__).parent.freeze
end

spec_helper_glob = File.expand_path('{support,shared}/*.rb', __dir__)
Dir.glob(spec_helper_glob).map(&method(:require))
Dir.glob(spec_helper_glob).each(&method(:require))

RSpec.configure do |config|
# Basic configuration
Expand All @@ -18,9 +14,6 @@ module SpecHelper
config.include RuboCop::RSpec::ExpectOffense
end

$LOAD_PATH.unshift(File.join(__dir__, '..', 'lib'))
$LOAD_PATH.unshift(__dir__)

# small helper for use in let blocks
def target_chef_version(version)
RuboCop::Config.new('AllCops' => { 'TargetChefVersion' => version })
Expand Down