mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Fix specs
This commit is contained in:
parent
e9481ba603
commit
abd52c95fd
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ describe "Kemal::InitHandler" do
|
||||||
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
|
||||||
HTTP.parse_time(date).should be_close(Time.utc, 1.second)
|
date = HTTP.parse_time(date).should_not be_nil
|
||||||
|
date.should be_close(Time.utc, 1.second)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "initializes context with X-Powered-By: Kemal" do
|
it "initializes context with X-Powered-By: Kemal" do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue