Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-07-04 00:58:28 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-07-04 16:56:41 +0300
commit28553dbc05989b698777ee085aa2a357ffe576d2 (patch)
tree8005538c73dd33ce949047d201f8d2b55ba2294e /spec/serializers/pipeline_entity_spec.rb
parent005870d5ce1a00b3405d0ae3a639d0c4befcb7a2 (diff)
Update tests due to permission changes
Diffstat (limited to 'spec/serializers/pipeline_entity_spec.rb')
-rw-r--r--spec/serializers/pipeline_entity_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/serializers/pipeline_entity_spec.rb b/spec/serializers/pipeline_entity_spec.rb
index 46650f3a80d..46433867b11 100644
--- a/spec/serializers/pipeline_entity_spec.rb
+++ b/spec/serializers/pipeline_entity_spec.rb
@@ -52,7 +52,7 @@ describe PipelineEntity do
context 'user has ability to retry pipeline' do
before do
- project.team << [user, :developer]
+ project.add_master(user)
end
it 'contains retry path' do
@@ -80,7 +80,7 @@ describe PipelineEntity do
context 'user has ability to cancel pipeline' do
before do
- project.add_developer(user)
+ project.add_master(user)
end
it 'contains cancel path' do