kemal/spec/logger_spec.cr
2015-11-18 22:45:49 +02:00

16 lines
370 B
Crystal

require "./spec_helper"
describe "Logger" do
it "creates a STDOUT handler by default" do
config = Kemal.config
logger = Kemal::Logger.new
logger.handler.should be_a IO
end
it "creates a file handler in production" do
config = Kemal.config
config.env = "production"
logger = Kemal::Logger.new
logger.handler.should be_a File
end
end