Always use parentheses on method definition

This commit is contained in:
Bertocq
2017-09-25 22:50:24 +02:00
parent ca35c8b85c
commit 71b57ffc67
2 changed files with 1 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ RSpec.describe CommentsHelper, type: :helper do
describe '#user_level_class' do
def comment_double as_administrator: false, as_moderator: false, official: false
def comment_double(as_administrator: false, as_moderator: false, official: false)
user = double official?: official, official_level: 'Y'
double as_administrator?: as_administrator, as_moderator?: as_moderator, user: user
end