test/logger_extensions_test.rb in cliutils-1.2.3 vs test/logger_extensions_test.rb in cliutils-1.2.4
- old
+ new
@@ -1,16 +1,17 @@
require 'test/unit'
-require File.join(File.dirname(__FILE__), '..', 'lib/cliutils/ext/Logger+Extensions')
+require File.join(File.dirname(__FILE__), '..', 'lib/cliutils/ext/logger_extensions')
+# Tests for the Logger extension methods
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
\ No newline at end of file
+end