summaryrefslogtreecommitdiff
path: root/spec/functional/loader_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-08-16 13:15:22 -0700
committerTim Smith <tsmith84@gmail.com>2019-08-16 13:15:22 -0700
commit54b3cc831750805f19f838d60dea25e23dfa2e8c (patch)
tree81f539fca05ca2d0ed0761011913cd852b46d450 /spec/functional/loader_spec.rb
parent038fd847c6d75dfaf6e60b67de185732aa245cc3 (diff)
downloadohai-rspec.tar.gz
rspec updates from rubocop-rspecrspec
Autocorrects for a few different things that rubocop-rspec identified. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/functional/loader_spec.rb')
-rw-r--r--spec/functional/loader_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/loader_spec.rb b/spec/functional/loader_spec.rb
index f1eb2c2f..02ba673f 100644
--- a/spec/functional/loader_spec.rb
+++ b/spec/functional/loader_spec.rb
@@ -25,7 +25,7 @@ RSpec.describe "Ohai::Loader" do
let(:plugin_directory) { Dir.mktmpdir("plugins") }
let(:plugin_path) { plugin_directory.tr("/", "\\") }
- before(:each) do
+ before do
Ohai.config[:plugin_path] = plugin_path
plugin_content = <<~EOF
@@ -38,7 +38,7 @@ RSpec.describe "Ohai::Loader" do
end
end
- after(:each) do
+ after do
FileUtils.rm_rf(plugin_directory)
end