diff --git a/spec/producer/core/cli_spec.rb b/spec/producer/core/cli_spec.rb index a031075..b058cb8 100644 --- a/spec/producer/core/cli_spec.rb +++ b/spec/producer/core/cli_spec.rb @@ -32,7 +32,9 @@ module Producer::Core subject(:cli) { CLI.new(arguments, stdout) } 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 it 'prints the usage' do