Skip to content

Commit

Permalink
MemoryIO -> IO::Memory (was introduced by merging old PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Nov 22, 2016
1 parent 202e771 commit 98e8c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/std/http/request_spec.cr
Expand Up @@ -326,12 +326,12 @@ module HTTP
end

it "gets request host from the headers" do
request = Request.from_io(MemoryIO.new("GET / HTTP/1.1\r\nHost: host.example.org:3000\r\nReferer:\r\n\r\n")).as(Request)
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)
request.host.should eq("host.example.org")
end

it "gets request host with port from the headers" do
request = Request.from_io(MemoryIO.new("GET / HTTP/1.1\r\nHost: host.example.org:3000\r\nReferer:\r\n\r\n")).as(Request)
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)
request.host_with_port.should eq("host.example.org:3000")
end
end
Expand Down

0 comments on commit 98e8c65

Please sign in to comment.