spec/lita/daemon_spec.rb in lita-3.3.1 vs spec/lita/daemon_spec.rb in lita-4.0.0.rc1
- old
+ new
@@ -9,11 +9,11 @@
allow(Process).to receive(:daemon)
allow(Process).to receive(:kill)
allow(File).to receive(:new).and_return("log")
allow(File).to receive(:open)
allow(File).to receive(:read)
- allow_any_instance_of(described_class).to receive(:stdout).and_return(stdout)
- allow_any_instance_of(described_class).to receive(:stderr).and_return(stderr)
+ stub_const("STDOUT", stdout)
+ stub_const("STDERR", stderr)
end
subject { described_class.new("/tmp/lita_pid", "/tmp/lita_log", false) }
describe "#daemonize" do