0
0
Fork 0

Use "cacheable response" shared example in more places (#29419)

This commit is contained in:
Matt Jankowski 2024-02-27 06:50:21 -05:00 committed by GitHub
parent 54e3a82f1d
commit 9e78129e6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 48 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
shared_examples 'cacheable response' do |expects_vary: false|
it 'sets correct cache and vary headers and does not set cookies or session' do
it 'sets correct cache and vary headers and does not set cookies or session', :aggregate_failures do
expect(response.cookies).to be_empty
expect(response.headers['Set-Cookies']).to be_nil