Use "cacheable response" shared example in more places (#29419)
This commit is contained in:
parent
54e3a82f1d
commit
9e78129e6e
5 changed files with 9 additions and 48 deletions
|
@ -14,17 +14,6 @@ describe CustomCssController do
|
|||
expect(response).to have_http_status(200)
|
||||
end
|
||||
|
||||
it 'returns public cache control header' do
|
||||
expect(response.headers['Cache-Control']).to include('public')
|
||||
end
|
||||
|
||||
it 'does not set cookies' do
|
||||
expect(response.cookies).to be_empty
|
||||
expect(response.headers['Set-Cookies']).to be_nil
|
||||
end
|
||||
|
||||
it 'does not set sessions' do
|
||||
expect(session).to be_empty
|
||||
end
|
||||
it_behaves_like 'cacheable response'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue