diff --git a/spec/services/notification_service_spec.rb b/spec/services/notification_service_spec.rb index 0faff48c059..6d2bc41c2b9 100644 --- a/spec/services/notification_service_spec.rb +++ b/spec/services/notification_service_spec.rb @@ -149,7 +149,7 @@ describe NotificationService do before do build_team(note.project) - allow_any_instance_of(Commit).to receive(:author).and_return() + allow_any_instance_of(Commit).to receive(:author).and_return(@u_committer) end describe :new_note do