summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2016-02-01 18:40:42 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2016-02-01 19:19:12 -0800
commit36fed7cda6001a7d341a5bffd1bd1941407ad894 (patch)
tree4f836592a7ee7dacf4805f9ff49e1ab400f7adf1
parent0bcbde9cbcc5e53cf9a45f5c6471a06e6f74dc15 (diff)
downloadchef-36fed7cda6001a7d341a5bffd1bd1941407ad894.tar.gz
cmdlet_spec does not need its own ohai
-rw-r--r--spec/functional/util/powershell/cmdlet_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/functional/util/powershell/cmdlet_spec.rb b/spec/functional/util/powershell/cmdlet_spec.rb
index fe9438f467..7b023d9fb8 100644
--- a/spec/functional/util/powershell/cmdlet_spec.rb
+++ b/spec/functional/util/powershell/cmdlet_spec.rb
@@ -21,11 +21,8 @@ require File.expand_path("../../../../spec_helper", __FILE__)
describe Chef::Util::Powershell::Cmdlet, :windows_powershell_dsc_only do
before(:all) do
- ohai = Ohai::System.new
- ohai.load_plugins
- ohai.run_plugins(true, ["platform", "kernel"])
@node = Chef::Node.new
- @node.consume_external_attrs(ohai.data, {})
+ @node.consume_external_attrs(OHAI_SYSTEM.data, {})
end
let(:cmd_output_format) { :text }
let(:simple_cmdlet) { Chef::Util::Powershell::Cmdlet.new(@node, "get-childitem", cmd_output_format, {:depth => 2}) }