kemal/spec/logger_spec.cr
2015-10-27 21:01:36 +02:00

13 lines
227 B
Crystal

require "./spec_helper"
describe "Logger" do
it "logs stuff" do
IO.pipe do |r,w|
logger = Kemal::Logger.new(w)
logger.info "Info from logger"
r.gets.should match(/Info from logger/)
end
end
end