Enable Rubocop RSpec/NotToNot (#23723)
This commit is contained in:
1 parent
a2fdb388eb
commit
65ba0d92ef
40 files changed
+94
-214
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user