Skip to content

Commit

Permalink
Cleanup for #212
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Feb 23, 2017
1 parent 17f4be2 commit ff856b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/cache_test.rb
Expand Up @@ -364,10 +364,10 @@ def call(params)
response.status.must_equal 200
end

it 'sets the ETag header is nil' do
it "doesn't send Last-Modified" do
Time.stub(:now, @modified_since) do
response = @app.get('/last-modified', {'HTTP_IF_NONE_MATCH' => ''})
response.headers['Last-Modified'].must_equal nil
assert !response.headers.key?('Last-Modified')
end
end
end
Expand All @@ -378,10 +378,10 @@ def call(params)
response.status.must_equal 200
end

it 'sets the ETag header is nil' do
it "doesn't send Last-Modified" do
Time.stub(:now, @modified_since) do
response = @app.get('/last-modified', {'HTTP_IF_NONE_MATCH' => ' '})
response.headers['Last-Modified'].must_equal nil
assert !response.headers.key?('Last-Modified')
end
end
end
Expand Down

0 comments on commit ff856b1

Please sign in to comment.