diff options
author | NimishaS <nimisha.sharad@msystechnologies.com> | 2016-10-03 09:27:36 +0000 |
---|---|---|
committer | NimishaS <nimisha.sharad@msystechnologies.com> | 2016-10-03 09:27:36 +0000 |
commit | af13c7a425e990232d6ff0a1739ff81ed12b55cd (patch) | |
tree | f8ddb75582c84adddbb53e1dd5ff5a6b886b4198 /spec/functional | |
parent | c8ba46a99e255414576f94afee0f034ccf24d0bf (diff) | |
download | chef-af13c7a425e990232d6ff0a1739ff81ed12b55cd.tar.gz |
Raising Mixlib::ShellOut::ShellCommandFailed exception
Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/mixin/powershell_out_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functional/mixin/powershell_out_spec.rb b/spec/functional/mixin/powershell_out_spec.rb index 9a210100e0..31bf397569 100644 --- a/spec/functional/mixin/powershell_out_spec.rb +++ b/spec/functional/mixin/powershell_out_spec.rb @@ -33,7 +33,7 @@ describe Chef::Mixin::PowershellOut, windows_only: true do end it "raises exceptions when the command is invalid" do - expect { powershell_out!("this-is-not-a-valid-command").run_command }.to raise_error(RuntimeError) + expect { powershell_out!("this-is-not-a-valid-command").run_command }.to raise_error(Mixlib::ShellOut::ShellCommandFailed) end end end |