spec/plugin/caching_spec.rb in roda-2.21.0 vs spec/plugin/caching_spec.rb in roda-2.22.0
- old
+ new
@@ -36,17 +36,19 @@
describe 'response.finish' do
it 'removes Content-Type and Content-Length for 304 responses' do
app(:caching) do |r|
response.status = 304
+ nil
end
header('Content-Type').must_be_nil
header('Content-Length').must_be_nil
end
it 'does not change non-304 responses' do
app(:caching) do |r|
response.status = 200
+ nil
end
header('Content-Type').must_equal 'text/html'
header('Content-Length').must_equal '0'
end
end