diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-09-23 19:42:44 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-09-23 20:14:09 -0700 |
commit | 419873bd43e17eb11a45fd02c5df109f980a98e9 (patch) | |
tree | 0f562146da670925bb00381826c4e1b77c045bf7 | |
parent | eb49e6b6b8c160da0cf53f05fefa1c90d7a3a993 (diff) | |
download | chef-419873bd43e17eb11a45fd02c5df109f980a98e9.tar.gz |
Back out one of the requires gatings
This seems to break specs
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | .rubocop.yml | 4 | ||||
-rw-r--r-- | chef-config/spec/spec_helper.rb | 2 | ||||
-rw-r--r-- | chef-config/spec/unit/workstation_config_loader_spec.rb | 2 | ||||
-rw-r--r-- | chef-utils/spec/spec_helper.rb | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 3209f30aba..0c874566be 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -36,5 +36,5 @@ ChefRuby/UnlessDefinedRequire: Include: - 'lib/**/*' - 'chef-bin/**/*' - - 'chef-config/**/*' - - 'chef-utils/**/*' + - 'chef-config/lib/**/*' + - 'chef-utils/lib/**/*' diff --git a/chef-config/spec/spec_helper.rb b/chef-config/spec/spec_helper.rb index fb6e78a6b1..557f1f6432 100644 --- a/chef-config/spec/spec_helper.rb +++ b/chef-config/spec/spec_helper.rb @@ -1,4 +1,4 @@ -require "chef-utils" unless defined?(ChefUtils) +require "chef-utils" # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| diff --git a/chef-config/spec/unit/workstation_config_loader_spec.rb b/chef-config/spec/unit/workstation_config_loader_spec.rb index cffc316240..70b42ad961 100644 --- a/chef-config/spec/unit/workstation_config_loader_spec.rb +++ b/chef-config/spec/unit/workstation_config_loader_spec.rb @@ -20,7 +20,7 @@ require "spec_helper" require "tempfile" unless defined?(Tempfile) require "chef-config/exceptions" -require "chef-utils" unless defined?(ChefUtils) +require "chef-utils" require "chef-config/workstation_config_loader" RSpec.describe ChefConfig::WorkstationConfigLoader do diff --git a/chef-utils/spec/spec_helper.rb b/chef-utils/spec/spec_helper.rb index b7efd66c4e..0b193e2d9a 100644 --- a/chef-utils/spec/spec_helper.rb +++ b/chef-utils/spec/spec_helper.rb @@ -1,4 +1,4 @@ -require "chef-utils" unless defined?(ChefUtils) +require "chef-utils" # FIXME: dynamically generate this for accuracy HELPER_MODULES = [ |