Skip to content

Commit

Permalink
fix test failures due to MockResponse adding Content-Type header, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Aug 28, 2011
1 parent 08515fe commit 8bd81b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/context_test.rb
Expand Up @@ -88,8 +88,8 @@
'HTTP_IF_MODIFIED_SINCE' => timestamp 'HTTP_IF_MODIFIED_SINCE' => timestamp
app.should.be.called app.should.be.called
response.status.should.equal 304 response.status.should.equal 304
response.headers.should.not.include 'Content-Length' response.original_headers.should.not.include 'Content-Length'
response.headers.should.not.include 'Content-Type' response.original_headers.should.not.include 'Content-Type'
response.body.should.empty response.body.should.empty
cache.trace.should.include :miss cache.trace.should.include :miss
cache.trace.should.include :store cache.trace.should.include :store
Expand All @@ -107,8 +107,8 @@
'HTTP_IF_NONE_MATCH' => '12345' 'HTTP_IF_NONE_MATCH' => '12345'
app.should.be.called app.should.be.called
response.status.should.equal 304 response.status.should.equal 304
response.headers.should.not.include 'Content-Length' response.original_headers.should.not.include 'Content-Length'
response.headers.should.not.include 'Content-Type' response.original_headers.should.not.include 'Content-Type'
response.headers.should.include 'ETag' response.headers.should.include 'ETag'
response.body.should.empty response.body.should.empty
cache.trace.should.include :miss cache.trace.should.include :miss
Expand Down

0 comments on commit 8bd81b2

Please sign in to comment.