Sha256: b847b9d638b52a89ee4343772e809bf43fb20b95b34900f572d12f6d2deb86ff

Contents?: true

Size: 412 Bytes

Versions: 10

Compression:

Stored size: 412 Bytes

Contents

require 'test_helper'

module Chillout
  class PrefixedLoggerTest < ChilloutTestCase
    def test_error_message_is_prefixed
      output = StringIO.new
      logger = Logger.new(output)
      prefixed_logger = PrefixedLogger.new("Chillout", logger)
      prefixed_logger.error "Someone is wrong on the internet"
      assert_includes output.string, "[Chillout] Someone is wrong on the internet"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
chillout-0.8.9 test/prefixed_logger_test.rb
chillout-0.8.5.1 test/prefixed_logger_test.rb
chillout-0.8.8 test/prefixed_logger_test.rb
chillout-0.8.7 test/prefixed_logger_test.rb
chillout-0.8.6 test/prefixed_logger_test.rb
chillout-0.8.5 test/prefixed_logger_test.rb
chillout-0.8.4 test/prefixed_logger_test.rb
chillout-0.8.3 test/prefixed_logger_test.rb
chillout-0.8.2 test/prefixed_logger_test.rb
chillout-0.8.1 test/prefixed_logger_test.rb