spec/lita/daemon_spec.rb in lita-3.0.3 vs spec/lita/daemon_spec.rb in lita-3.0.4

- old
+ new

@@ -23,26 +23,26 @@ subject.daemonize end context "when the user has not requested that existing processes should be killed" do it "aborts if a Lita process is already running" do - allow(File).to receive(:exists?).and_return(true) + allow(File).to receive(:exist?).and_return(true) expect(subject).to receive(:abort) subject.daemonize end end context "when the user has requested that existing process be killed" do subject { described_class.new("/tmp/lita_pid", "/tmp/lita_log", true) } it "kills existing processes" do - allow(File).to receive(:exists?).and_return(true) + allow(File).to receive(:exist?).and_return(true) expect(Process).to receive(:kill) subject.daemonize end it "aborts if it can't kill an existing process" do - allow(File).to receive(:exists?).and_return(true) + allow(File).to receive(:exist?).and_return(true) allow(Process).to receive(:kill).and_raise(Errno::ESRCH) expect(subject).to receive(:abort) subject.daemonize end end