summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/spec_lint.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec_lint.rb b/test/spec_lint.rb
index 7dec47cd..9823a9c6 100644
--- a/test/spec_lint.rb
+++ b/test/spec_lint.rb
@@ -622,8 +622,8 @@ describe Rack::Lint do
Rack::Lint.new(lambda { |env|
env['rack.hijack?'] = true
- [201, { "Content-type" => "text/plain", "Content-length" => "0", 'rack.hijack' => lambda { StringIO.new }, 'rack.hijack_io' => StringIO.new }, []]
- }).call(env({}))[1]['rack.hijack'].call.read.must_equal ''
+ [201, { "Content-type" => "text/plain", "Content-length" => "0", 'rack.hijack' => lambda {|io| io }, 'rack.hijack_io' => StringIO.new }, []]
+ }).call(env({}))[1]['rack.hijack'].call(StringIO.new).read.must_equal ''
end
end