summaryrefslogtreecommitdiff
path: root/spec/unit/mixin/powershell_out_spec.rb
diff options
context:
space:
mode:
authorNimishaS <nimisha.sharad@msystechnologies.com>2016-10-03 09:27:36 +0000
committerNimishaS <nimisha.sharad@msystechnologies.com>2016-10-03 09:27:36 +0000
commitaf13c7a425e990232d6ff0a1739ff81ed12b55cd (patch)
treef8ddb75582c84adddbb53e1dd5ff5a6b886b4198 /spec/unit/mixin/powershell_out_spec.rb
parentc8ba46a99e255414576f94afee0f034ccf24d0bf (diff)
downloadchef-af13c7a425e990232d6ff0a1739ff81ed12b55cd.tar.gz
Raising Mixlib::ShellOut::ShellCommandFailed exception
Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
Diffstat (limited to 'spec/unit/mixin/powershell_out_spec.rb')
-rw-r--r--spec/unit/mixin/powershell_out_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/mixin/powershell_out_spec.rb b/spec/unit/mixin/powershell_out_spec.rb
index c37fc4c8d9..9524557c4c 100644
--- a/spec/unit/mixin/powershell_out_spec.rb
+++ b/spec/unit/mixin/powershell_out_spec.rb
@@ -44,7 +44,7 @@ describe Chef::Mixin::PowershellOut, :windows_only do
end
it "raises error if double quote is passed with double escape characters" do
- expect { object.powershell_out("Write-Verbose \\\"Some String\\\" -Verbose") }.to raise_error("Please use single escape for special characters in powershell_out.")
+ expect { object.powershell_out("Write-Verbose \\\"Some String\\\" -Verbose") }.to raise_error(Mixlib::ShellOut::ShellCommandFailed)
end
end
end