Skip to content

Commit

Permalink
Add spec for #300. Appears to pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Jan 18, 2012
1 parent 62ff9ad commit 247331e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/spec_file.rb
Expand Up @@ -169,4 +169,11 @@
end
end

should "set Content-Length correctly for HEAD requests" do
req = Rack::MockRequest.new(Rack::Lint.new(Rack::File.new(DOCROOT)))
res = req.head "/cgi/test"
res.should.be.successful
res['Content-Length'].should.equal "193"
end

end

0 comments on commit 247331e

Please sign in to comment.