diff options
-rw-r--r-- | spec/unit/mixin/powershell_exec_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/mixin/powershell_exec_spec.rb b/spec/unit/mixin/powershell_exec_spec.rb index d6f89c0aa1..fce73453a9 100644 --- a/spec/unit/mixin/powershell_exec_spec.rb +++ b/spec/unit/mixin/powershell_exec_spec.rb @@ -47,7 +47,7 @@ describe Chef::Mixin::PowershellExec, :windows_only do end it "raises an error if the command fails" do - expect(object.powershell_exec!("$PSVersionTable")).to be_kind_of(Chef::PowerShell::CommandFailed) + expect { object.powershell_exec!("this-should-error") }.to raise_error(Chef::PowerShell::CommandFailed) end end end |