From abd52c95fde367d414adb4741a8869952dc8b941 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Wed, 3 Apr 2024 17:57:31 +0200 Subject: [PATCH] Fix specs --- spec/init_handler_spec.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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