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
|
2016-07-05 19:14:00 +00:00
|
|
|
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
|
2016-07-05 19:14:00 +00:00
|
|
|
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
|