Closed k0kubun closed 9 years ago
Earthquake::OptionParser.new(['--help']).parse will raise SystemExit because of this line. Since rescue catches only StandardError by default, L54 does not catch SystemExit and this spec fails. I fixed it.
Earthquake::OptionParser.new(['--help']).parse
rescue
StandardError
SystemExit
Earthquake::OptionParser.new(['--help']).parse
will raise SystemExit because of this line. Sincerescue
catches onlyStandardError
by default, L54 does not catchSystemExit
and this spec fails. I fixed it.