Skip to content

Commit 98e8c65

Browse files
author
Ary Borenszweig
committedNov 22, 2016
MemoryIO -> IO::Memory (was introduced by merging old PR)
1 parent 202e771 commit 98e8c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎spec/std/http/request_spec.cr

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,12 @@ module HTTP
326326
end
327327

328328
it "gets request host from the headers" do
329-
request = Request.from_io(MemoryIO.new("GET / HTTP/1.1\r\nHost: host.example.org:3000\r\nReferer:\r\n\r\n")).as(Request)
329+
request = Request.from_io(IO::Memory.new("GET / HTTP/1.1\r\nHost: host.example.org:3000\r\nReferer:\r\n\r\n")).as(Request)
330330
request.host.should eq("host.example.org")
331331
end
332332

333333
it "gets request host with port from the headers" do
334-
request = Request.from_io(MemoryIO.new("GET / HTTP/1.1\r\nHost: host.example.org:3000\r\nReferer:\r\n\r\n")).as(Request)
334+
request = Request.from_io(IO::Memory.new("GET / HTTP/1.1\r\nHost: host.example.org:3000\r\nReferer:\r\n\r\n")).as(Request)
335335
request.host_with_port.should eq("host.example.org:3000")
336336
end
337337
end

0 commit comments

Comments
 (0)
Please sign in to comment.