shard-kemal/spec/logger_spec.cr

12 lines
226 B
Crystal
Raw Normal View History

2015-10-27 19:01:36 +00:00
require "./spec_helper"
describe "Logger" do
it "logs stuff" do
2015-10-28 18:30:27 +00:00
IO.pipe do |r, w|
2015-10-27 19:01:36 +00:00
logger = Kemal::Logger.new(w)
logger.info "Info from logger"
r.gets.should match(/Info from logger/)
end
end
end