Test exact exit status in CLI spec

This commit is contained in:
Thibault Jouan 2013-07-28 23:25:58 +00:00
parent d146566411
commit ead09c2118

View File

@ -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