summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:29:13 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:29:13 -0700
commit878560a22f37aec0c2dfe681b3743e027155be88 (patch)
tree676062be70a45e73a8722c0e6dadd220162fb101 /spec/spec_helper.rb
parent202887162a22e0c7062064fff0d9462f8c02bf0e (diff)
downloadchef-878560a22f37aec0c2dfe681b3743e027155be88.tar.gz
fix Layout/DotPosition
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index c9ba059ddb..d900fc2f37 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -50,10 +50,10 @@ end
require "chef"
require "chef/knife"
-Dir["lib/chef/knife/**/*.rb"].
- map { |f| f.gsub("lib/", "") }.
- map { |f| f.gsub(%r{\.rb$}, "") }.
- each { |f| require f }
+Dir["lib/chef/knife/**/*.rb"]
+ .map { |f| f.gsub("lib/", "") }
+ .map { |f| f.gsub(%r{\.rb$}, "") }
+ .each { |f| require f }
require "chef/resource_resolver"
require "chef/provider_resolver"
@@ -90,12 +90,12 @@ require "spec/support/shared/unit/mock_shellout"
# Autoloads support files
# Excludes support/platforms by default
# Do not change the gsub.
-Dir["spec/support/**/*.rb"].
- reject { |f| f =~ %r{^spec/support/platforms} }.
- reject { |f| f =~ %r{^spec/support/pedant} }.
- map { |f| f.gsub(%r{.rb$}, "") }.
- map { |f| f.gsub(%r{spec/}, "") }.
- each { |f| require f }
+Dir["spec/support/**/*.rb"]
+ .reject { |f| f =~ %r{^spec/support/platforms} }
+ .reject { |f| f =~ %r{^spec/support/pedant} }
+ .map { |f| f.gsub(%r{.rb$}, "") }
+ .map { |f| f.gsub(%r{spec/}, "") }
+ .each { |f| require f }
OHAI_SYSTEM = Ohai::System.new
OHAI_SYSTEM.all_plugins(["platform", "hostname", "languages/powershell"])