diff options
author | Rémy Coutable <remy@rymai.me> | 2017-12-23 14:09:42 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-12-23 14:09:42 +0000 |
commit | 6c967c2b5b9760d0df6bcff70c059858abf971ec (patch) | |
tree | 6c184f3d48efc26eb39ab880c71dc5b4cd46bfa9 /spec/models/ci/pipeline_spec.rb | |
parent | 5512f0aaf5a4814fbea5a697076a97ff2db00c00 (diff) | |
parent | 27c95364b52f4e93054c45211010aeb22e40a2b2 (diff) | |
download | gitlab-ce-6c967c2b5b9760d0df6bcff70c059858abf971ec.tar.gz |
Merge branch '36782-replace-team-user-role-with-add_role-user-in-specs' into 'master'
Resolve "Replace '.team << [user, role]' with 'add_role(user)' in specs"
Closes #36782
See merge request gitlab-org/gitlab-ce!16069
Diffstat (limited to 'spec/models/ci/pipeline_spec.rb')
-rw-r--r-- | spec/models/ci/pipeline_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index a1f63a2534b..7bef798a782 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -1440,7 +1440,7 @@ describe Ci::Pipeline, :mailer do end before do - project.team << [pipeline.user, Gitlab::Access::DEVELOPER] + project.add_developer(pipeline.user) pipeline.user.global_notification_setting .update(level: 'custom', failed_pipeline: true, success_pipeline: true) |