Sha256: eee92c31ba713c69157984e7c29867d274ebbf88e2a2c59d2f3ff88e5bd8e4f6
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 Bytes
Contents
require_relative 'test_helper' class NoTimestampPatchTest < MiniTest::Unit::TestCase def test_patching_sets_correct_formatter_on_new_instances patched_logger = Class.new(Logger) do include Logger::NoTimestampPatch end logger = patched_logger.new $stdout assert_instance_of Logger::Better::NoTimestampFormatter, logger.formatter end def test_patching_allows_setting_level_by_symbol patched_logger = Class.new(Logger) do include Logger::BetterPatch end logger = patched_logger.new $stdout logger.level = :debug assert_equal Logger::DEBUG, logger.level end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
logger-better-0.2.1 | test/no_timestamp_patch_test.rb |
logger-better-0.2.0 | test/no_timestamp_patch_test.rb |