Rename MemoryIO to IO::Memory since it's deprecated on Crystal 0.20.0

This commit is contained in:
sdogruyol 2016-11-22 23:29:10 +03:00
parent 733582f724
commit 6b034c3b2f
8 changed files with 18 additions and 18 deletions

View file

@ -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)