Add have_cacheable_headers matcher for responses (#31727)
This commit is contained in:
@@ -9,11 +9,10 @@ describe 'Custom stylesheets' do
|
||||
it 'returns http success' do
|
||||
expect(response)
|
||||
.to have_http_status(200)
|
||||
.and have_cacheable_headers
|
||||
.and have_attributes(
|
||||
content_type: match('text/css')
|
||||
)
|
||||
end
|
||||
|
||||
it_behaves_like 'cacheable response'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user