diff options
author | Tim Smith <tsmith@chef.io> | 2018-02-15 11:55:40 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-02-15 11:55:40 -0800 |
commit | 1d9add3acb79673ad6c5cbc5deb926a41057e156 (patch) | |
tree | 2acef06e71dcdeed3d1f4c800ba790d9502529c7 | |
parent | f2b345a4314a19929fe7271bd3eaee1f590a695f (diff) | |
download | ohai-1d9add3acb79673ad6c5cbc5deb926a41057e156.tar.gz |
Fix vmware specs to actually run the pluginfix_vmware_specs
It helps to run the plugin before we make sure the attributes aren't there.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/unit/plugins/vmware_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/plugins/vmware_spec.rb b/spec/unit/plugins/vmware_spec.rb index 7ea04619..e568fd44 100644 --- a/spec/unit/plugins/vmware_spec.rb +++ b/spec/unit/plugins/vmware_spec.rb @@ -64,6 +64,7 @@ describe Ohai::System, "plugin vmware" do plugin[:virtualization][:systems] = Mash.new plugin[:virtualization][:systems][:vmware] = Mash.new allow(File).to receive(:exist?).with("/usr/bin/vmware-toolbox-cmd").and_return(false) + plugin.run expect(plugin).not_to have_key(:vmware) end end @@ -73,6 +74,7 @@ describe Ohai::System, "plugin vmware" do plugin[:virtualization] = Mash.new plugin[:virtualization][:systems] = Mash.new plugin[:virtualization][:systems][:vbox] = Mash.new + plugin.run expect(plugin).not_to have_key(:vmware) end end |