summaryrefslogtreecommitdiff
path: root/spec/functional/resource/dsc_script_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional/resource/dsc_script_spec.rb')
-rw-r--r--spec/functional/resource/dsc_script_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/functional/resource/dsc_script_spec.rb b/spec/functional/resource/dsc_script_spec.rb
index 67fa30d815..131ec20b4c 100644
--- a/spec/functional/resource/dsc_script_spec.rb
+++ b/spec/functional/resource/dsc_script_spec.rb
@@ -385,9 +385,7 @@ EOH
before(:each) do
delete_user(dsc_user)
- ohai_reader = Ohai::System.new
- ohai_reader.all_plugins(["platform", "os", "languages/powershell"])
- dsc_test_run_context.node.consume_external_attrs(ohai_reader.data,{})
+ dsc_test_run_context.node.consume_external_attrs(OHAI_SYSTEM.data,{})
end
let(:configuration_data_path) { 'C:\\configurationdata.psd1' }