Merge remote-tracking branch 'parent/main' into kb_development

This commit is contained in:
KMY 2024-04-27 08:42:37 +09:00
commit ec7b51504b
42 changed files with 498 additions and 227 deletions

View file

@ -138,6 +138,17 @@ RSpec.describe Notification do
expect(notification.account).to eq(account)
end
end
context 'when activity_type is an AccountWarning' do
it 'sets the notification from_account to the recipient of the notification' do
account = Fabricate(:account)
account_warning = Fabricate(:account_warning, target_account: account)
notification = Fabricate.build(:notification, activity_type: 'AccountWarning', activity: account_warning, account: account)
expect(notification.from_account).to eq(account)
end
end
end
describe '.preload_cache_collection_target_statuses' do