summary refs log tree commit
path: root/test/spec_head.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec_head.rb')
-rw-r--r--test/spec_head.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/spec_head.rb b/test/spec_head.rb
index 18f9a76a..78bc6ad7 100644
--- a/test/spec_head.rb
+++ b/test/spec_head.rb
@@ -38,6 +38,8 @@ describe Rack::Head do
     resp[0].should.equal(200)
     resp[1].should.equal({"Content-type" => "test/plain", "Content-length" => "3"})
     resp[2].to_enum.to_a.should.equal([])
+    body.should.not.be.closed
+    resp[2].close
     body.should.be.closed
   end
 end