This is easier to write:
Feedback from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4404#note_12194471
This commit is contained in:
parent
e8cf89fa06
commit
5360ef2c5b
|
@ -895,7 +895,7 @@ describe User, models: true do
|
|||
let(:project) { create(:project) }
|
||||
|
||||
def add_user access
|
||||
Member.add_user(project.project_members, user, access)
|
||||
project.team << [user, access]
|
||||
end
|
||||
|
||||
it_behaves_like :member
|
||||
|
|
Loading…
Reference in New Issue