Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Apr 3, 2024
1 parent e9481ba commit abd52c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/init_handler_spec.cr
Expand Up @@ -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
Expand Down

0 comments on commit abd52c9

Please sign in to comment.