Remove render_template from accounts request spec (#33519)

This commit is contained in:
Matt Jankowski 2025-01-09 03:17:11 -05:00 committed by GitHub
parent 4148b68430
commit cbae00ad23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,8 +53,9 @@ RSpec.describe 'Accounts show response' do
it 'returns a standard HTML response', :aggregate_failures do
expect(response)
.to have_http_status(200)
.and render_template(:show)
.and have_http_link_header(ActivityPub::TagManager.instance.uri_for(account)).for(rel: 'alternate')
expect(response.parsed_body.at('title').content)
.to include(account.username)
end
end