diff --git a/spec/requests/cache_spec.rb b/spec/requests/cache_spec.rb index dbba22874..c56eec16c 100644 --- a/spec/requests/cache_spec.rb +++ b/spec/requests/cache_spec.rb @@ -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