2
0

Fix moderation warning e-mails that include posts (#36462)

This commit is contained in:
Claire
2025-10-14 13:48:51 +02:00
committed by GitHub
parent 0c64e7f75e
commit 44ecc4b1e3
3 changed files with 6 additions and 4 deletions

View File

@@ -141,7 +141,9 @@ RSpec.describe UserMailer do
end
describe '#warning' do
let(:strike) { Fabricate(:account_warning, target_account: receiver.account, text: 'dont worry its just the testsuite', action: 'suspend') }
let(:status) { Fabricate(:status, account: receiver.account) }
let(:quote) { Fabricate(:quote, state: :accepted, status: status) }
let(:strike) { Fabricate(:account_warning, target_account: receiver.account, text: 'dont worry its just the testsuite', action: 'suspend', status_ids: [quote.status_id]) }
let(:mail) { described_class.warning(receiver, strike) }
it 'renders warning notification' do