Fix no notification being created when account is added to collection on creation (#38611)
This commit is contained in:
1 parent
28b04ec24e
commit
ba9eabccbf
3 files changed
+21
No files matched your search
@@ -62,6 +62,16 @@ RSpec.describe CreateCollectionService do
|
||||
end
|
||||
end
|
||||
|
||||
context 'when some accounts are local' do
|
||||
it 'schedules notifications' do
|
||||
subject.call(params, author)
|
||||
|
||||
expect(LocalNotificationWorker)
|
||||
.to have_enqueued_sidekiq_job
|
||||
.with(author.id, anything, 'CollectionItem', 'added_to_collection')
|
||||
end
|
||||
end
|
||||
|
||||
context 'when some accounts are remote' do
|
||||
let(:accounts) { Fabricate.times(2, :remote_account, feature_approval_policy: (0b10 << 16)) }
|
||||
|
||||
|
||||
Reference in new issue
Block a user