complete log tests

This commit is contained in:
Torsten Ruger 2016-12-15 22:14:24 +02:00
parent 886220d388
commit 00987519cc

View File

@ -31,4 +31,9 @@ class LoggerTest < MiniTest::Test
assert @logger.log.error "Error" assert @logger.log.error "Error"
assert MemLogger.stream.string.include? "Error" assert MemLogger.stream.string.include? "Error"
end end
def test_set_level
[:unknown, :fatal, :error , :warn, :info].each do |level|
assert @logger.log_level( level)
end
end
end end