Enable Rubocop RSpec/NotToNot (#23723)

This commit is contained in:
Nick Schonning
2023-02-19 20:33:27 -05:00
committed by GitHub
parent a2fdb388eb
commit 65ba0d92ef
40 changed files with 94 additions and 214 deletions

View File

@ -7,13 +7,13 @@ describe StatusLengthValidator do
it 'does not add errors onto remote statuses' do
status = double(local?: false)
subject.validate(status)
expect(status).not_to receive(:errors)
expect(status).to_not receive(:errors)
end
it 'does not add errors onto local reblogs' do
status = double(local?: false, reblog?: true)
subject.validate(status)
expect(status).not_to receive(:errors)
expect(status).to_not receive(:errors)
end
it 'adds an error when content warning is over 500 characters' do