|
|
|
@ -19,7 +19,7 @@ describe ActivityPub::DistributionWorker do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'delivers to followers' do
|
|
|
|
|
expect_push_bulk_to_match(ActivityPub::DeliveryWorker, [[kind_of(String), status.account.id, 'http://example.com', anything]]) do
|
|
|
|
|
expect_push_bulk_to_match(ActivityPub::DeliveryWorker, [[match_json_values(type: 'Create'), status.account.id, 'http://example.com', anything]]) do
|
|
|
|
|
subject.perform(status.id)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
@ -31,7 +31,7 @@ describe ActivityPub::DistributionWorker do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'delivers to followers' do
|
|
|
|
|
expect_push_bulk_to_match(ActivityPub::DeliveryWorker, [[kind_of(String), status.account.id, 'http://example.com', anything]]) do
|
|
|
|
|
expect_push_bulk_to_match(ActivityPub::DeliveryWorker, [[match_json_values(type: 'Create'), status.account.id, 'http://example.com', anything]]) do
|
|
|
|
|
subject.perform(status.id)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
@ -46,7 +46,7 @@ describe ActivityPub::DistributionWorker do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'delivers to mentioned accounts' do
|
|
|
|
|
expect_push_bulk_to_match(ActivityPub::DeliveryWorker, [[kind_of(String), status.account.id, 'https://foo.bar/inbox', anything]]) do
|
|
|
|
|
expect_push_bulk_to_match(ActivityPub::DeliveryWorker, [[match_json_values(type: 'Create'), status.account.id, 'https://foo.bar/inbox', anything]]) do
|
|
|
|
|
subject.perform(status.id)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|