shard-kemal/spec/spec_helper.cr
2016-01-05 14:20:40 +02:00

16 lines
274 B
Crystal

require "spec"
require "../src/kemal/*"
require "../src/kemal/middleware/*"
include Kemal
class CustomTestHandler < HTTP::Handler
def call(request)
call_next request
end
end
Spec.before_each do
Kemal.config.env = "development"
Kemal.config.handlers.clear
end