Add FactoryBot/ConsistentParenthesesStyle rule
This rule was added in rubocop-rspec 2.14.0. We were already applying it most of the time.
This commit is contained in:
@@ -39,8 +39,8 @@ describe Notification do
|
||||
|
||||
describe "#recent" do
|
||||
it "returns notifications sorted by id descendant" do
|
||||
old_notification = create :notification
|
||||
new_notification = create :notification
|
||||
old_notification = create(:notification)
|
||||
new_notification = create(:notification)
|
||||
|
||||
expect(Notification.recent).to eq [new_notification, old_notification]
|
||||
end
|
||||
@@ -80,8 +80,8 @@ describe Notification do
|
||||
|
||||
describe "#timestamp" do
|
||||
it "returns the timestamp of the trackable object" do
|
||||
comment = create :comment
|
||||
notification = create :notification, notifiable: comment
|
||||
comment = create(:comment)
|
||||
notification = create(:notification, notifiable: comment)
|
||||
|
||||
expect(notification.timestamp).to eq comment.created_at
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user