shard-kemal/spec/logger_spec.cr
2015-10-28 20:30:27 +02:00

11 lines
226 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