diff options
author | Thom May <thom@may.lt> | 2018-02-16 09:53:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 09:53:11 +0000 |
commit | d7c2f9790933a60c85648b3082e9a074b85f573f (patch) | |
tree | a4afe1cde77da06c26ae437eef9d064edcbc947a | |
parent | 8ff528642bd8f9d23d6d9e0a7fb96f6a5cd8afc8 (diff) | |
parent | 1d9add3acb79673ad6c5cbc5deb926a41057e156 (diff) | |
download | ohai-d7c2f9790933a60c85648b3082e9a074b85f573f.tar.gz |
Merge pull request #1133 from chef/fix_vmware_specs
Fix vmware specs to actually run the plugin
-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 |