diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-07-07 16:38:39 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-07-07 16:38:39 -0700 |
commit | 7d347265971da729b8121858e4bfa7ef1bcd3d32 (patch) | |
tree | 38d3482534e3def2609873606080d4a0040be525 /spec/unit/mixin | |
parent | 3e9e6d41a31bd1ac932f7f4100102466b4fdfe05 (diff) | |
download | chef-7d347265971da729b8121858e4bfa7ef1bcd3d32.tar.gz |
Fix `powershell_exec!` test.fix-powershell_exec-bang-test
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec/unit/mixin')
-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 |