Clean up of RSpec/LetSetup within spec/lib (#28447)

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

View file

@ -50,6 +50,10 @@ RSpec.describe ActivityPub::Activity::Delete do
it 'sends delete activity to followers of rebloggers' do
expect(a_request(:post, 'http://example.com/inbox')).to have_been_made.once
end
it 'deletes the reblog' do
expect { reblog.reload }.to raise_error(ActiveRecord::RecordNotFound)
end
end
end