diff options
Diffstat (limited to 'spec/unit/mixin/powershell_exec_spec.rb')
-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 245f681688..92e92dc2a1 100644 --- a/spec/unit/mixin/powershell_exec_spec.rb +++ b/spec/unit/mixin/powershell_exec_spec.rb @@ -66,7 +66,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("Runtime exception: this-should-error") + expect(execution.errors[0]).to include("The term 'this-should-error' is not recognized") end it "raises an error if the interpreter is invalid" do |