spec/lib/guard/process_spec.rb in guard-rack-2.2.0 vs spec/lib/guard/process_spec.rb in guard-rack-2.2.1

- old
+ new

@@ -49,11 +49,11 @@ wait_stub.returns([pid, status_stub]) status_stub.stubs(:exitstatus).returns(0) end it 'should return true' do - expect(subject.kill pid).to eq(0) + expect(subject.kill(pid)).to eq(0) end end context 'rackup returns unsuccessful exit status' do before do @@ -61,22 +61,22 @@ wait_stub.returns([pid, status_stub]) status_stub.stubs(:exitstatus).returns(1) end it 'should return false' do - expect(subject.kill pid).to eq(1) + expect(subject.kill(pid)).to eq(1) end end context 'kill times out' do before do wait_stub.raises(Timeout::Error) Process.expects(:kill).with('TERM', pid) end it 'should return false' do - expect(subject.kill pid).to eq(-1) + expect(subject.kill(pid)).to eq(-1) end end end end @@ -97,10 +97,10 @@ before do $CHILD_STATUS.stubs(:exitstatus).returns 0 end it 'should result in 0' do - expect(subject.kill pid).to eq(0) + expect(subject.kill(pid)).to eq(0) end end end end end