spec/unit/plugins/windows/system_enclosure_spec.rb in ohai-15.2.5 vs spec/unit/plugins/windows/system_enclosure_spec.rb in ohai-15.3.1

- old
+ new

@@ -31,15 +31,15 @@ allow(wmi_ole_object).to receive(:invoke).with(serialnumber.name).and_return(serialnumber.value) wmi_object = WmiLite::Wmi::Instance.new(wmi_ole_object) expect_any_instance_of(WmiLite::Wmi).to receive(:first_of).with(("Win32_SystemEnclosure")).and_return(wmi_object) end - it "should return the manufacturer" do + it "returns the manufacturer" do @plugin.run expect(@plugin["system_enclosure"]["manufacturer"]).to eql("My Fake Manufacturer") end - it "should return a serial number" do + it "returns a serial number" do @plugin.run expect(@plugin["system_enclosure"]["serialnumber"]).to eql("1234123412341234") end end