|
32 | 32 | end |
33 | 33 |
|
34 | 34 | it 'delivers to followers' do |
35 | | - expect_push_bulk_to_match(ActivityPub::DeliveryWorker, [[kind_of(String), status.account.id, 'http://example.com', anything]]) do |
36 | | - subject.perform(status.id) |
37 | | - end |
| 35 | + subject.perform(status.id) |
| 36 | + |
| 37 | + expect(ActivityPub::DeliveryWorker) |
| 38 | + .to have_enqueued_sidekiq_job(match_json_values(type: 'Create'), status.account.id, 'http://example.com', anything) |
38 | 39 | end |
39 | 40 | end |
40 | 41 |
|
|
59 | 60 | end |
60 | 61 |
|
61 | 62 | it 'delivers to followers' do |
62 | | - expect_push_bulk_to_match(ActivityPub::DeliveryWorker, [[kind_of(String), status.account.id, 'http://example.com/follower/inbox', anything]]) do |
63 | | - subject.perform(status.id) |
64 | | - end |
| 63 | + subject.perform(status.id) |
| 64 | + |
| 65 | + expect(ActivityPub::DeliveryWorker) |
| 66 | + .to have_enqueued_sidekiq_job(match_json_values(type: 'Create'), status.account.id, 'http://example.com/follower/inbox', anything) |
65 | 67 | end |
66 | 68 | end |
67 | 69 |
|
|
91 | 93 | end |
92 | 94 |
|
93 | 95 | it 'delivers to followers' do |
94 | | - expect_push_bulk_to_match(ActivityPub::DeliveryWorker, [[kind_of(String), status.account.id, 'http://example.com/no_follower/inbox', anything]]) do |
95 | | - subject.perform(status.id) |
96 | | - end |
| 96 | + subject.perform(status.id) |
| 97 | + |
| 98 | + expect(ActivityPub::DeliveryWorker) |
| 99 | + .to have_enqueued_sidekiq_job(match_json_values(type: 'Create'), status.account.id, 'http://example.com/no_follower/inbox', anything) |
97 | 100 | end |
98 | 101 | end |
99 | 102 |
|
|
0 commit comments