Handle CLI failure exit status at the top-level script (#28322)
This commit is contained in:
parent
881e8c113c
commit
0e0a94f483
27 changed files with 150 additions and 320 deletions
|
@ -104,9 +104,9 @@ describe Mastodon::CLI::Main do
|
|||
answer_hostname_incorrectly
|
||||
end
|
||||
|
||||
it 'exits silently' do
|
||||
it 'exits with mismatch error message' do
|
||||
expect { subject }
|
||||
.to raise_error(SystemExit)
|
||||
.to raise_error(Thor::Error, /Domains do not match/)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -119,7 +119,7 @@ describe Mastodon::CLI::Main do
|
|||
it 'passes first step but stops before instructions' do
|
||||
expect { subject }
|
||||
.to output_results('operation WILL NOT')
|
||||
.and raise_error(SystemExit)
|
||||
.and raise_error(Thor::Error, /Self-destruct will not begin/)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue