kemal/spec/logger_spec.cr

15 lines
327 B
Crystal
Raw Normal View History

2015-10-27 19:01:36 +00:00
require "./spec_helper"
2016-02-03 20:08:54 +00:00
describe "Kemal::LogHandler" do
2015-11-20 21:07:10 +00:00
it "creates a handler" do
logger = Kemal::CommonLogHandler.new
2015-11-20 21:07:10 +00:00
logger.handler.should_not be nil
end
2015-11-18 20:45:49 +00:00
it "creates a STDOUT handler by default" do
config = Kemal.config
logger = Kemal::CommonLogHandler.new
2015-11-18 20:45:49 +00:00
logger.handler.should be_a IO
end
2015-10-27 19:01:36 +00:00
end