Add and apply RSpec/BeEq rubocop rule

This rule was added in rubocop-rspec 2.9.0. Once again, we were applying
it about 50% of the time.
This commit is contained in:
Javi Martín
2023-08-29 19:14:49 +02:00
parent 6268ae9274
commit f79a21f071
31 changed files with 213 additions and 210 deletions

View File

@@ -103,7 +103,7 @@ describe Notification do
create(:notification, user: user, notifiable: comment1)
expect(Notification.existent(user, comment2)).to eq(nil)
expect(Notification.existent(user, comment2)).to be nil
end
it "returns nil when there are notifications of a notifiable for another user" do
@@ -113,7 +113,7 @@ describe Notification do
create(:notification, user: user1, notifiable: comment)
expect(Notification.existent(user2, comment)).to eq(nil)
expect(Notification.existent(user2, comment)).to be nil
end
end