diff --git a/spec/init_handler_spec.cr b/spec/init_handler_spec.cr index 4b0042d5..20724c6d 100644 --- a/spec/init_handler_spec.cr +++ b/spec/init_handler_spec.cr @@ -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