spec/balboa/cli/application_spec.rb in balboa-0.1.4 vs spec/balboa/cli/application_spec.rb in balboa-0.1.5
- old
+ new
@@ -34,19 +34,16 @@
app = described_class.new('cmd')
command = double
allow(command).to receive(:execute).and_raise
app.add_command(:cmd, command)
-
- expect {
- app.execute
- }.to raise_error(RuntimeError)
+
+ expect { app.execute }.to raise_error(RuntimeError)
end
it 'raises error when command not found' do
app = described_class.new('cmd')
- expect {
- app.execute
- }.to raise_error(Balboa::CLI::Application::CommandNotFound)
+ error = Balboa::CLI::Application::CommandNotFound
+ expect { app.execute }.to raise_error(error)
end
end