Use `response_vary_headers` method in requests/cache_spec (#29411)

pull/29415/head
Matt Jankowski 1 year ago committed by GitHub
parent 1540f42522
commit 8156113d58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -184,7 +184,7 @@ describe 'Caching behavior' do
get '/users/alice'
expect(response).to redirect_to('/@alice')
expect(response.headers['Vary']&.split(',')&.map { |x| x.strip.downcase }).to include('accept')
expect(response_vary_headers).to include('accept')
end
end

Loading…
Cancel
Save