Sha256: 0d5ab6df71a1a21685b7f82cf31ee95514bb3d0c277794b6203707664b7ac96b
Contents?: true
Size: 507 Bytes
Versions: 14
Compression:
Stored size: 507 Bytes
Contents
require 'test/unit' require File.join(File.dirname(__FILE__), '..', 'lib/cliutils/ext/Logger+Extensions') class TestLoggerExtensions < Test::Unit::TestCase def test_custom_level l = Logger.new(STDOUT) l.formatter = proc do |severity, datetime, progname, msg| puts "#{ severity }: #{ msg }" end assert_output("PROMPT: test\n") { l.prompt('test') } assert_output("SECTION: test\n") { l.section('test') } assert_output("SUCCESS: test\n") { l.success('test') } end end
Version data entries
14 entries across 14 versions & 1 rubygems