Sha256: 259b0dd9b716f00ff400108b576dab1dc13c0f7d13041e2da9ea2ab362962102
Contents?: true
Size: 597 Bytes
Versions: 1
Compression:
Stored size: 597 Bytes
Contents
require_relative 'test_helper' class BetterPatchTest < MiniTest::Test def test_patching_sets_correct_formatter_on_new_instances patched_logger = Class.new(Logger) do include Logger::BetterPatch end logger = patched_logger.new $stdout assert_instance_of Logger::Better::TimestampFormatter, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logger-better-0.2.2 | test/better_patch_test.rb |