summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-07-07 17:28:04 -0700
committerGitHub <noreply@github.com>2020-07-07 17:28:04 -0700
commit278ee25ca58589abb55c814afd951e9404226a84 (patch)
treeafa5ef1c7304da14563da204c936f37f1ffddb51
parent8dfb972e9dd8c760b453d76b5db73f1f8b96ecb0 (diff)
parent7d347265971da729b8121858e4bfa7ef1bcd3d32 (diff)
downloadchef-278ee25ca58589abb55c814afd951e9404226a84.tar.gz
Merge pull request #10126 from chef/fix-powershell_exec-bang-test
Fix `powershell_exec!` test.
-rw-r--r--spec/unit/mixin/powershell_exec_spec.rb2
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