crystal tool format
with Crystal 1.15.0-dev (#691)
This commit is contained in:
parent
85fcbbee02
commit
dc031c6074
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ describe "Kemal::InitHandler" do
|
||||||
io = IO::Memory.new
|
io = IO::Memory.new
|
||||||
response = HTTP::Server::Response.new(io)
|
response = HTTP::Server::Response.new(io)
|
||||||
context = HTTP::Server::Context.new(request, response)
|
context = HTTP::Server::Context.new(request, response)
|
||||||
Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) {}
|
Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) { }
|
||||||
Kemal::InitHandler::INSTANCE.call(context)
|
Kemal::InitHandler::INSTANCE.call(context)
|
||||||
context.response.headers["Content-Type"].should eq "text/html"
|
context.response.headers["Content-Type"].should eq "text/html"
|
||||||
end
|
end
|
||||||
|
@ -16,7 +16,7 @@ describe "Kemal::InitHandler" do
|
||||||
io = IO::Memory.new
|
io = IO::Memory.new
|
||||||
response = HTTP::Server::Response.new(io)
|
response = HTTP::Server::Response.new(io)
|
||||||
context = HTTP::Server::Context.new(request, response)
|
context = HTTP::Server::Context.new(request, response)
|
||||||
Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) {}
|
Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) { }
|
||||||
Kemal::InitHandler::INSTANCE.call(context)
|
Kemal::InitHandler::INSTANCE.call(context)
|
||||||
date = context.response.headers["Date"]?.should_not be_nil
|
date = context.response.headers["Date"]?.should_not be_nil
|
||||||
date = HTTP.parse_time(date).should_not be_nil
|
date = HTTP.parse_time(date).should_not be_nil
|
||||||
|
|
Loading…
Reference in a new issue