spec/lib/guard/integration_spec.rb in guard-rack-1.4.0 vs spec/lib/guard/integration_spec.rb in guard-rack-2.0.0
- old
+ new
@@ -6,13 +6,13 @@
let(:options) { { environment: 'development', port: 3000, config: 'spec/lib/guard/integration.ru' } }
describe '#start' do
context 'run' do
it 'should run' do
- runner.start.should be_true
+ expect(runner.start).to be_truthy
pid = runner.pid
- pid.should_not be_nil
- Process.getpgid(pid).should be > 0
+ expect(pid).not_to be_nil
+ expect(Process.getpgid(pid)).to be > 0
runner.stop
expect do
Process.getpgid(pid)
end.to raise_error Errno::ESRCH
end