Add have_cacheable_headers matcher for responses (#31727)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-09-03 15:35:19 +00:00
1 parent 490bdb7944
commit e1fa456c7c
11 files changed
+96 -65

No files matched your search

+1 -2
View File
@@ -17,6 +17,7 @@ RSpec.describe 'Instance actor endpoint' do
it 'returns http success with correct media type and body' do
expect(response)
.to have_http_status(200)
.and have_cacheable_headers
expect(response.content_type)
.to start_with('application/activity+json')
expect(body_as_json)
@@ -32,8 +33,6 @@ RSpec.describe 'Instance actor endpoint' do
url: about_more_url(instance_actor: true)
)
end
it_behaves_like 'cacheable response'
end
context 'with limited federation mode disabled' do