0
0
Fork 0

Fix RSpec/PredicateMatcher cop (#25102)

This commit is contained in:
Matt Jankowski 2023-05-23 10:49:11 -04:00 committed by GitHub
parent 778e4a7bf7
commit b896b16cb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 18 deletions

View file

@ -48,7 +48,7 @@ RSpec.describe PostStatusService, type: :service do
expect(status.params['text']).to eq 'Hi future!'
expect(status.params['media_ids']).to eq [media.id]
expect(media.reload.status).to be_nil
expect(Status.where(text: 'Hi future!').exists?).to be_falsey
expect(Status.where(text: 'Hi future!')).to_not exist
end
it 'does not change statuses count' do