1
0
Fork 0
forked from gitea/nas

Clean up of RSpec/LetSetup within spec/services/activitypub (#28445)

This commit is contained in:
Matt Jankowski 2023-12-21 06:20:12 -05:00 committed by GitHub
parent c99f88e1a8
commit efd16f3c2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 7 deletions

View file

@ -242,7 +242,8 @@ RSpec.describe ActivityPub::ProcessCollectionService, type: :service do
it 'does not process forged payload' do
allow(ActivityPub::Activity).to receive(:factory)
subject.call(json, forwarder)
expect { subject.call(json, forwarder) }
.to_not change(actor.reload.statuses, :count)
expect(ActivityPub::Activity).to_not have_received(:factory).with(
hash_including(