summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/solaris2/filesystem.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2016-11-18 12:00:47 -0800
committerTim Smith <tsmith@chef.io>2016-12-01 10:58:06 -0800
commit3b65f582afe867180573313db3eb6450abf1da9b (patch)
tree4eadf04c5959ad39cb56e150f7fa510925b32168 /spec/unit/plugins/solaris2/filesystem.rb
parent5f43d30a38cee0a87c479988283a6bd934c07d01 (diff)
downloadohai-rubocop_rspec.tar.gz
rspec-rubocop autofix the specsrubocop_rspec
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/plugins/solaris2/filesystem.rb')
-rw-r--r--spec/unit/plugins/solaris2/filesystem.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/plugins/solaris2/filesystem.rb b/spec/unit/plugins/solaris2/filesystem.rb
index 97a3b222..8ced417c 100644
--- a/spec/unit/plugins/solaris2/filesystem.rb
+++ b/spec/unit/plugins/solaris2/filesystem.rb
@@ -20,14 +20,14 @@ require_relative "../../../spec_helper"
describe Ohai::System, "Solaris2.X filesystem plugin" do
let(:plugin) { get_plugin("solaris2/filesystem") }
- before(:each) do
+ before do
allow(plugin).to receive(:collect_os).and_return("solaris2")
end
describe "filesystem properties" do
let(:plugin_config) { {} }
- before(:each) do
+ before do
@original_plugin_config = Ohai.config[:plugin]
Ohai.config[:plugin] = plugin_config
allow(plugin).to receive(:shell_out).with("df -Pka").and_return(mock_shell_out(0, "", ""))
@@ -35,7 +35,7 @@ describe Ohai::System, "Solaris2.X filesystem plugin" do
allow(plugin).to receive(:shell_out).with("mount").and_return(mock_shell_out(0, "", ""))
end
- after(:each) do
+ after do
Ohai.config[:plugin] = @original_plugin_config
end