spec/plugin/caching_spec.rb in roda-2.20.0 vs spec/plugin/caching_spec.rb in roda-2.21.0

- old
+ new

@@ -10,11 +10,11 @@ it 'does not add a Cache-Control header if it would be empty' do app(:caching) do |r| response.cache_control({}) end - header('Cache-Control').must_equal nil + header('Cache-Control').must_be_nil end end describe 'response.expires' do it 'sets the Cache-Control and Expires header' do @@ -37,12 +37,12 @@ describe 'response.finish' do it 'removes Content-Type and Content-Length for 304 responses' do app(:caching) do |r| response.status = 304 end - header('Content-Type').must_equal nil - header('Content-Length').must_equal nil + 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 @@ -55,10 +55,10 @@ describe 'request.last_modified' do it 'ignores nil' do app(:caching) do |r| r.last_modified nil end - header('Last-Modified').must_equal nil + header('Last-Modified').must_be_nil end it 'does not change a status other than 200' do app(:caching) do |r| response.status = 201