spec/outputs/exec_spec.rb in logstash-output-exec-3.0.3 vs spec/outputs/exec_spec.rb in logstash-output-exec-3.1.0

- old
+ new

@@ -30,18 +30,19 @@ allow(subject.logger).to receive(:debug?).and_return(true) expect(Open3).to receive(:popen3).with(command).and_yield(stdin, stdout, stderr) end it "register the stdout and stderr to the logger" do - expect(subject.logger).to receive(:pipe).with(stdout => :debug, stderr => :debug) + expect(subject.logger).to receive(:debug).with(/running exec command/, hash_including(:command)) + expect(subject.logger).to receive(:debug).with(/debugging/, hash_including(:stdout, :stderr)) subject.receive(event) end end context "When debugging is off" do context "when quiet is off" do it "write output to the terminal" do - expect(subject.logger).to receive(:terminal).with(output) + expect(subject.logger).to receive(:info).with(output) subject.receive(event) end end end end