spec/timber/logger_spec.rb in timber-2.0.22 vs spec/timber/logger_spec.rb in timber-2.0.23

- old
+ new

@@ -98,23 +98,9 @@ logger.info("this is a test") expect(io.string).to start_with("{\"level\":\"info\",\"dt\":\"2016-09-01T12:00:00.000000Z\",\"message\":\"this is a test\"") end end - if defined?(ActiveSupport::TaggedLogging) - context "with TaggedLogging", :rails_23 => false do - let(:logger) { ActiveSupport::TaggedLogging.new(Timber::Logger.new(io)) } - - it "should format properly with events" do - message = Timber::Events::SQLQuery.new(sql: "select * from users", time_ms: 56, message: "select * from users") - logger.tagged("tag") do - logger.info(message) - end - expect(io.string).to include("\"tags\":[\"tag\"]") - end - end - end - context "with the HTTP log device" do let(:io) { Timber::LogDevices::HTTP.new("my_key") } it "should use the PassThroughFormatter" do expect(logger.formatter).to be_kind_of(Timber::Logger::PassThroughFormatter) \ No newline at end of file