diff --git a/spec/init_handler_spec.cr b/spec/init_handler_spec.cr index 20724c6d..97397d37 100644 --- a/spec/init_handler_spec.cr +++ b/spec/init_handler_spec.cr @@ -6,7 +6,7 @@ describe "Kemal::InitHandler" do io = IO::Memory.new response = HTTP::Server::Response.new(io) context = HTTP::Server::Context.new(request, response) - Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) {} + Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) { } Kemal::InitHandler::INSTANCE.call(context) context.response.headers["Content-Type"].should eq "text/html" end @@ -16,7 +16,7 @@ describe "Kemal::InitHandler" do io = IO::Memory.new response = HTTP::Server::Response.new(io) context = HTTP::Server::Context.new(request, response) - Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) {} + Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) { } Kemal::InitHandler::INSTANCE.call(context) date = context.response.headers["Date"]?.should_not be_nil date = HTTP.parse_time(date).should_not be_nil