diff options
-rw-r--r-- | spec/functional/resource/dsc_script_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/dsc_script_spec.rb b/spec/functional/resource/dsc_script_spec.rb index 153182f613..b83c1302c2 100644 --- a/spec/functional/resource/dsc_script_spec.rb +++ b/spec/functional/resource/dsc_script_spec.rb @@ -17,7 +17,6 @@ # require "spec_helper" -require "chef-powershell" require "chef/mixin/powershell_exec" require "chef/mixin/windows_architecture_helper" require "support/shared/integration/integration_helper" @@ -261,10 +260,11 @@ describe Chef::Resource::DscScript, :windows_powershell_dsc_only, :ruby64_only d end it "should raise an exception if the cwd is etc" do + # Chef_PowerShell::PowerShellExceptions::PowerShellCommandFailed dsc_test_resource.cwd(dsc_environment_fail_etc_directory) expect { dsc_test_resource.run_action(:run) - }.to raise_error(Chef::PowerShell::CommandFailed, /#{exception_message_signature}/) + }.to raise_error(Chef_PowerShell::PowerShellExceptions::PowerShellCommandFailed, /#{exception_message_signature}/) end end end |