Add quoted_update notification type (#35820)

This commit is contained in:
Claire authored and GitHub committed 2025-08-25 15:44:18 +00:00
1 parent 7aba79ade9
commit f3a932d8a1
12 files changed
+117 -6

No files matched your search

+11
View File
@@ -69,6 +69,17 @@ RSpec.describe Notification do
end
end
context 'when the notification is a quoted post update notification' do
it 'sets the notification from_account correctly' do
status = Fabricate(:status)
quote = Fabricate(:quote, quoted_status: status)
notification = Fabricate.build(:notification, activity_type: 'Status', type: 'quoted_update', activity: quote.status)
expect(notification.from_account).to eq(status.account)
end
end
context 'when activity_type is a Follow' do
it 'sets the notification from_account correctly' do
follow = Fabricate(:follow)