diff options
author | Tim Smith <tsmith@chef.io> | 2016-11-18 12:00:47 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2016-12-01 10:58:06 -0800 |
commit | 3b65f582afe867180573313db3eb6450abf1da9b (patch) | |
tree | 4eadf04c5959ad39cb56e150f7fa510925b32168 /spec/unit/plugins/kernel_spec.rb | |
parent | 5f43d30a38cee0a87c479988283a6bd934c07d01 (diff) | |
download | ohai-rubocop_rspec.tar.gz |
rspec-rubocop autofix the specsrubocop_rspec
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/plugins/kernel_spec.rb')
-rw-r--r-- | spec/unit/plugins/kernel_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/plugins/kernel_spec.rb b/spec/unit/plugins/kernel_spec.rb index c46952e5..252e9f77 100644 --- a/spec/unit/plugins/kernel_spec.rb +++ b/spec/unit/plugins/kernel_spec.rb @@ -19,7 +19,7 @@ require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper.rb") describe Ohai::System, "plugin kernel" do - before(:each) do + before do @plugin = get_plugin("kernel") allow(@plugin).to receive(:collect_os).and_return(:default) # for debugging allow(@plugin).to receive(:shell_out).with("uname -s").and_return(mock_shell_out(0, "Darwin\n", "")) @@ -78,7 +78,7 @@ describe Ohai::System, "plugin kernel" do @plugin.run end - it "should set the correct system information" do + it "sets the correct system information" do expect(@ohai_system.data[:kernel][:name]).to eq("Microsoft Windows 7 Ultimate") expect(@ohai_system.data[:kernel][:release]).to eq("6.1.7601") expect(@ohai_system.data[:kernel][:version]).to eq("6.1.7601 Service Pack 1 Build 7601") |