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

@ -30,5 +30,9 @@ RSpec.describe Vacuum::PreviewCardsVacuum do
it 'does not delete attached preview cards' do
expect(new_preview_card.reload).to be_persisted
end
it 'does not delete orphaned preview cards in the retention period' do
expect(orphaned_preview_card.reload).to be_persisted
end
end
end