Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (26 sloc) 0.623 kb
require 'spec_helper'
require 'guard/cli'
describe Guard::CLI do
let(:guard) { Guard }
describe '#start' do
context 'with an interrupt signal' do
before do
guard.should_receive(:start).and_raise(Interrupt)
guard.stub(:stop)
end
it 'exits nicely' do
guard.should_receive(:stop)
subject.stub(:abort)
subject.start
end
it 'exits with failure status code' do
begin
subject.start
raise 'Guard did not abort!'
rescue SystemExit => e
e.status.should_not eq(0)
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.