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:
@@ -49,7 +49,7 @@ shared_examples "notifiable in-app" do |factory_name|
|
||||
end
|
||||
|
||||
scenario "A user replied to my comment" do
|
||||
comment = create :comment, commentable: notifiable, user: author
|
||||
comment = create(:comment, commentable: notifiable, user: author)
|
||||
|
||||
login_as(create(:user, :verified))
|
||||
visit path_for(notifiable)
|
||||
@@ -74,7 +74,7 @@ shared_examples "notifiable in-app" do |factory_name|
|
||||
end
|
||||
|
||||
scenario "Multiple replies to my comment" do
|
||||
comment = create :comment, commentable: notifiable, user: author
|
||||
comment = create(:comment, commentable: notifiable, user: author)
|
||||
|
||||
3.times do |n|
|
||||
login_as(create(:user, :verified))
|
||||
@@ -118,7 +118,7 @@ shared_examples "notifiable in-app" do |factory_name|
|
||||
end
|
||||
|
||||
scenario "Author replied to his own comment" do
|
||||
comment = create :comment, commentable: notifiable, user: author
|
||||
comment = create(:comment, commentable: notifiable, user: author)
|
||||
|
||||
login_as author
|
||||
visit path_for(notifiable)
|
||||
|
||||
Reference in New Issue
Block a user