mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-29 23:23:10 +01:00
Merge commit '8965e1bfa9ce958ab16083a555ec6677b5f0f690' into glitch-soc/merge-4.4
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user