spec/ohai/plugins/linux/virtualization_spec.rb in ohai-0.4.0 vs spec/ohai/plugins/linux/virtualization_spec.rb in ohai-0.5.0

- old
+ new

@@ -103,11 +103,11 @@ Version: VS2005R2 Serial Number: 1688-7189-5337-7903-2297-1012-52 UUID: D29974A4-BE51-044C-BDC6-EFBC4B87A8E9 Wake-up Type: Power Switch MSVPC - @stdout.stub!(:string).and_return(ms_vpc_dmidecode) + @stdout.stub!(:read).and_return(ms_vpc_dmidecode) @ohai.stub!(:popen4).with("dmidecode").and_yield(@pid, @stdin, @stdout, @stderr).and_return(@status) @ohai._require_plugin("linux::virtualization") @ohai[:virtualization][:emulator].should == "virtualpc" @ohai[:virtualization][:role].should == "guest" @@ -123,10 +123,10 @@ UUID: a86cc405-e1b9-447b-ad05-6f8db39d876a Wake-up Type: Power Switch SKU Number: Not Specified Family: Not Specified VMWARE - @stdout.stub!(:string).and_return(vmware_dmidecode) + @stdout.stub!(:read).and_return(vmware_dmidecode) @ohai.stub!(:popen4).with("dmidecode").and_yield(@pid, @stdin, @stdout, @stderr).and_return(@status) @ohai._require_plugin("linux::virtualization") @ohai[:virtualization][:emulator].should == "vmware" @ohai[:virtualization][:role].should == "guest" end