spec/unit/plugins/windows/kernel_spec.rb in ohai-15.1.5 vs spec/unit/plugins/windows/kernel_spec.rb in ohai-15.2.5
- old
+ new
@@ -32,11 +32,11 @@
product_type = double("WIN32OLE", name: "ProductType")
operating_system_sku = double("WIN32OLE", name: "OperatingSystemSKU")
os_properties = [ caption, version, build_number, csd_version, os_type, product_type, operating_system_sku ]
os = double( "WIN32OLE",
- properties_: os_properties)
+ properties_: os_properties)
allow(os).to receive(:invoke).with(build_number.name).and_return("7601")
allow(os).to receive(:invoke).with(csd_version.name).and_return("Service Pack 1")
allow(os).to receive(:invoke).with(os_type.name).and_return(18)
allow(os).to receive(:invoke).with(caption.name).and_return("Microsoft Windows 7 Ultimate")
@@ -51,10 +51,10 @@
pc_system_type = double("WIN32OLE", name: "PCSystemType")
free_virtual_memory = double("WIN32OLE", name: "FreeVirtualMemory")
cs_properties = [ system_type, pc_system_type, free_virtual_memory]
cs = double("WIN32OLE",
- properties_: cs_properties)
+ properties_: cs_properties)
allow(cs).to receive(:invoke).with(system_type.name).and_return("x64-based PC")
allow(cs).to receive(:invoke).with(pc_system_type.name).and_return(2)
allow(cs).to receive(:invoke).with(free_virtual_memory.name).and_return("Why would you want this data here?")