logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

processing_worker_spec.rb (469B)


  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