describe command('ohai virtualization -c /etc/chef/client.rb') do
  its(:exit_status) { should eq(0) }
end

describe file('/etc/chef/client.rb') do
  its('content') { should match(/ohai.disabled_plugins = \["Mdadm"\]/) }
  its('content') { should match(%r{ohai.plugin_path << "/tmp/kitchen/ohai/plugins"}) }
end

if os.windows?
  config = 'C:\chef\client.rb'
else
  config = '/etc/chef/client.rb'
end

describe command("ohai virtualization -c #{config}") do
  its(:exit_status) { should eq(0) }
end

describe file(config) do
  its('content') { should match(/ohai.disabled_plugins = \["Mdadm"\]/) }
  its('content') { should match(%r{ohai.plugin_path << "/tmp/kitchen/ohai/plugins"}) }
end

Fix a few failing tests on Windows
Fix a few failing tests on Windows

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
