complete log tests
This commit is contained in:
parent
886220d388
commit
00987519cc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user