mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Rename MemoryIO to IO::Memory since it's deprecated on Crystal 0.20.0
This commit is contained in:
parent
733582f724
commit
6b034c3b2f
8 changed files with 18 additions and 18 deletions
|
@ -3,7 +3,7 @@ require "./spec_helper"
|
|||
describe "Kemal::InitHandler" do
|
||||
it "initializes context with Content-Type: text/html" do
|
||||
request = HTTP::Request.new("GET", "/")
|
||||
io = MemoryIO.new
|
||||
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) {}
|
||||
|
@ -13,7 +13,7 @@ describe "Kemal::InitHandler" do
|
|||
|
||||
it "initializes context with X-Powered-By: Kemal" do
|
||||
request = HTTP::Request.new("GET", "/")
|
||||
io = MemoryIO.new
|
||||
io = IO::Memory.new
|
||||
response = HTTP::Server::Response.new(io)
|
||||
context = HTTP::Server::Context.new(request, response)
|
||||
Kemal::InitHandler::INSTANCE.call(context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue