You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
469 B
16 lines
469 B
7 years ago
|
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
|