Permalink
Browse files

fix test failures due to MockResponse adding Content-Type header, fixes

  • Loading branch information...
1 parent 08515fe commit 8bd81b2118a98beecf9db5b1081da7457b4a35f5 @rtomayko rtomayko committed Aug 28, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/context_test.rb
View
8 test/context_test.rb
@@ -88,8 +88,8 @@
'HTTP_IF_MODIFIED_SINCE' => timestamp
app.should.be.called
response.status.should.equal 304
- response.headers.should.not.include 'Content-Length'
- response.headers.should.not.include 'Content-Type'
+ response.original_headers.should.not.include 'Content-Length'
+ response.original_headers.should.not.include 'Content-Type'
response.body.should.empty
cache.trace.should.include :miss
cache.trace.should.include :store
@@ -107,8 +107,8 @@
'HTTP_IF_NONE_MATCH' => '12345'
app.should.be.called
response.status.should.equal 304
- response.headers.should.not.include 'Content-Length'
- response.headers.should.not.include 'Content-Type'
+ response.original_headers.should.not.include 'Content-Length'
+ response.original_headers.should.not.include 'Content-Type'
response.headers.should.include 'ETag'
response.body.should.empty
cache.trace.should.include :miss

0 comments on commit 8bd81b2

Please sign in to comment.