Skip to content

Resolve "Replace '.team << [user, role]' with 'add_role(user)' in specs"

What does this MR do?

  1. Removes app/models/project_team.rb#<<.
  2. Adds app/models/project_team.rb#add_role.
  3. Removes project.team << [user, role] methods with project.add_*(user) or project.add_role(user, role) both in spec/ and in features/.

Why was this MR needed?

Make specs consistent and human readable.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #36782 (closed), !9232 (closed)

Edited by blackst0ne

Merge request reports