summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-06-28 13:12:41 -0700
committerGitHub <noreply@github.com>2018-06-28 13:12:41 -0700
commita3ffe453522b33165c3553097fffeedf705d07f5 (patch)
tree3525df170a017166cc5f84de2a6359f36f7de306 /spec/unit
parent77d2c495fa1026f261f44162efc909d4f27973b6 (diff)
parent8f8326973cbe1b0243e05b522bf3cdfcdda04ce8 (diff)
downloadchef-a3ffe453522b33165c3553097fffeedf705d07f5.tar.gz
Merge pull request #7380 from chef/sp/ffi-powershell
Switch powershell_exec mixin to use FFI instead of COM
Diffstat (limited to 'spec/unit')
-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 72619bdc8a..7241e67934 100644
--- a/spec/unit/mixin/powershell_exec_spec.rb
+++ b/spec/unit/mixin/powershell_exec_spec.rb
@@ -37,7 +37,7 @@ describe Chef::Mixin::PowershellExec, :windows_only do
execution = object.powershell_exec("this-should-error")
expect(execution.errors).to be_a_kind_of(Array)
expect(execution.errors[0]).to be_a_kind_of(String)
- expect(execution.errors[0]).to include("CommandNotFoundException")
+ expect(execution.errors[0]).to include("Runtime exception: this-should-error")
end
end
end