mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
16 lines
469 B
Ruby
16 lines
469 B
Ruby
|
require 'rails_helper'
|
||
|
|
||
|
describe ActivityPub::ProcessingWorker do
|
||
|
subject { described_class.new }
|
||
|
|
||
|
let(:account) { Fabricate(:account) }
|
||
|
|
||
|
describe '#perform' do
|
||
|
it 'delegates to ActivityPub::ProcessCollectionService' do
|
||
|
allow(ActivityPub::ProcessCollectionService).to receive(:new).and_return(double(:service, call: nil))
|
||
|
subject.perform(account.id, '')
|
||
|
expect(ActivityPub::ProcessCollectionService).to have_received(:new)
|
||
|
end
|
||
|
end
|
||
|
end
|