Test exact exit status in CLI spec
This commit is contained in:
parent
d146566411
commit
ead09c2118
@ -32,7 +32,9 @@ module Producer::Core
|
|||||||
subject(:cli) { CLI.new(arguments, stdout) }
|
subject(:cli) { CLI.new(arguments, stdout) }
|
||||||
|
|
||||||
it 'exits' do
|
it 'exits' do
|
||||||
expect { cli.run! }.to raise_error SystemExit
|
expect { cli.run! }.to raise_error(SystemExit) { |e|
|
||||||
|
expect(e.status).to eq 64
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'prints the usage' do
|
it 'prints the usage' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user