Fix RSpec/PredicateMatcher cop (#25102)
This commit is contained in:
parent
778e4a7bf7
commit
b896b16cb3
4 changed files with 9 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue