mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-22 18:45:43 +09:00
18 lines
500 B
Ruby
18 lines
500 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|