diff options
Diffstat (limited to 'spec/unit/plugins/windows/cpu_spec.rb')
-rw-r--r-- | spec/unit/plugins/windows/cpu_spec.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/unit/plugins/windows/cpu_spec.rb b/spec/unit/plugins/windows/cpu_spec.rb index 313104bf..74d03573 100644 --- a/spec/unit/plugins/windows/cpu_spec.rb +++ b/spec/unit/plugins/windows/cpu_spec.rb @@ -24,39 +24,39 @@ shared_examples "a cpu" do |cpu_no| expect(@plugin[:cpu]["#{cpu_no}"][:physical_id]).to eq("CPU#{cpu_no}") end - it "should set mhz to 2793" do + it "sets mhz to 2793" do expect(@plugin[:cpu]["#{cpu_no}"][:mhz]).to eq("2793") end - it "should set vendor_id to GenuineIntel" do + it "sets vendor_id to GenuineIntel" do expect(@plugin[:cpu]["#{cpu_no}"][:vendor_id]).to eq("GenuineIntel") end - it "should set model_name to Intel64 Family 6 Model 70 Stepping 1" do + it "sets model_name to Intel64 Family 6 Model 70 Stepping 1" do expect(@plugin[:cpu]["#{cpu_no}"][:model_name]) .to eq("Intel64 Family 6 Model 70 Stepping 1") end - it "should set model to 17921" do + it "sets model to 17921" do expect(@plugin[:cpu]["#{cpu_no}"][:model]).to eq("17921") end - it "should set family to 2" do + it "sets family to 2" do expect(@plugin[:cpu]["#{cpu_no}"][:family]).to eq("2") end - it "should set stepping to 9" do + it "sets stepping to 9" do expect(@plugin[:cpu]["#{cpu_no}"][:stepping]).to eq(9) end - it "should set cache_size to 64 KB" do + it "sets cache_size to 64 KB" do expect(@plugin[:cpu]["#{cpu_no}"][:cache_size]).to eq("64 KB") end end end describe Ohai::System, "Windows cpu plugin" do - before(:each) do + before do @plugin = get_plugin("windows/cpu") allow(@plugin).to receive(:collect_os).and_return(:windows) @@ -94,15 +94,15 @@ describe Ohai::System, "Windows cpu plugin" do @plugin.run end - it "should set total cpu to 2" do + it "sets total cpu to 2" do expect(@plugin[:cpu][:total]).to eq(4) end - it "should set real cpu to 2" do + it "sets real cpu to 2" do expect(@plugin[:cpu][:real]).to eq(2) end - it "should set 2 distinct cpus numbered 0 and 1" do + it "sets 2 distinct cpus numbered 0 and 1" do expect(@plugin[:cpu]).to have_key("0") expect(@plugin[:cpu]).to have_key("1") end |