processing_worker_spec.rb 469 B

123456789101112131415
  1. require 'rails_helper'
  2. describe ActivityPub::ProcessingWorker do
  3. subject { described_class.new }
  4. let(:account) { Fabricate(:account) }
  5. describe '#perform' do
  6. it 'delegates to ActivityPub::ProcessCollectionService' do
  7. allow(ActivityPub::ProcessCollectionService).to receive(:new).and_return(double(:service, call: nil))
  8. subject.perform(account.id, '')
  9. expect(ActivityPub::ProcessCollectionService).to have_received(:new)
  10. end
  11. end
  12. end