Fix specs

This commit is contained in:
Sijawusz Pur Rahnama 2024-04-03 17:57:31 +02:00 committed by GitHub
parent e9481ba603
commit abd52c95fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,8 @@ describe "Kemal::InitHandler" do
Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) {}
Kemal::InitHandler::INSTANCE.call(context)
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
it "initializes context with X-Powered-By: Kemal" do