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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user