Skip to content
Snippets Groups Projects
Commit 827b4891 authored by Markus Reiter's avatar Markus Reiter
Browse files

Avoid empty rescue.

parent 8c488de3
No related branches found
No related tags found
No related merge requests found
......@@ -63,16 +63,20 @@ describe Hbc::CLI::Install do
lambda {
begin
Hbc::CLI::Install.run("googlechrome")
rescue Hbc::CaskError; end
}.must_output nil, /No available Cask for googlechrome\. Did you mean:\ngoogle-chrome/
rescue Hbc::CaskError
nil
end
}.must_output(nil, /No available Cask for googlechrome\. Did you mean:\ngoogle-chrome/)
end
it "returns multiple suggestions for a Cask fragment" do
lambda {
begin
Hbc::CLI::Install.run("google")
rescue Hbc::CaskError; end
}.must_output nil, /No available Cask for google\. Did you mean one of:\ngoogle/
rescue Hbc::CaskError
nil
end
}.must_output(nil, /No available Cask for google\. Did you mean one of:\ngoogle/)
end
describe "when no Cask is specified" do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment