spec/multi_logger_spec.rb in logstash-logger-0.15.0 vs spec/multi_logger_spec.rb in logstash-logger-0.15.1

- old
+ new

@@ -16,11 +16,11 @@ expect(subject.loggers[0].device).to be_a LogStashLogger::Device::Stdout expect(subject.loggers[1].device).to be_a LogStashLogger::Device::IO end it "allows a different formatter for each logger" do - expect(subject.loggers[0].formatter).to be_a ::Logger::Formatter - expect(subject.loggers[1].formatter).to be_a LogStashLogger::Formatter::JsonLines + expect(subject.loggers[0].formatter.class).to eq ::Logger::Formatter + expect(subject.loggers[1].formatter.class).to eq LogStashLogger::Formatter::JsonLines end it "logs to all loggers" do subject.loggers.each do |logger| expect(logger).to receive(:info).with("test")