From 3b65f582afe867180573313db3eb6450abf1da9b Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 18 Nov 2016 12:00:47 -0800 Subject: rspec-rubocop autofix the specs Signed-off-by: Tim Smith --- spec/functional/loader_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/functional/loader_spec.rb') diff --git a/spec/functional/loader_spec.rb b/spec/functional/loader_spec.rb index def45b3e..2d98a91a 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 @@ EOF end end - after(:each) do + after do FileUtils.rm_rf(plugin_directory) end -- cgit v1.2.1