summaryrefslogtreecommitdiff
path: root/spec/serializers/pipeline_details_entity_spec.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-07-04 05:58:28 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-07-04 21:56:41 +0800
commit28553dbc05989b698777ee085aa2a357ffe576d2 (patch)
tree8005538c73dd33ce949047d201f8d2b55ba2294e /spec/serializers/pipeline_details_entity_spec.rb
parent005870d5ce1a00b3405d0ae3a639d0c4befcb7a2 (diff)
downloadgitlab-ce-28553dbc05989b698777ee085aa2a357ffe576d2.tar.gz
Update tests due to permission changes
Diffstat (limited to 'spec/serializers/pipeline_details_entity_spec.rb')
-rw-r--r--spec/serializers/pipeline_details_entity_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/serializers/pipeline_details_entity_spec.rb b/spec/serializers/pipeline_details_entity_spec.rb
index d28dec9592a..e9b24b47900 100644
--- a/spec/serializers/pipeline_details_entity_spec.rb
+++ b/spec/serializers/pipeline_details_entity_spec.rb
@@ -52,7 +52,7 @@ describe PipelineDetailsEntity do
context 'user has ability to retry pipeline' do
before do
- project.team << [user, :developer]
+ project.add_master(user)
end
it 'retryable flag is true' do
@@ -80,7 +80,7 @@ describe PipelineDetailsEntity do
context 'user has ability to cancel pipeline' do
before do
- project.add_developer(user)
+ project.add_master(user)
end
it 'cancelable flag is true' do
@@ -97,7 +97,7 @@ describe PipelineDetailsEntity do
context 'when pipeline has commit statuses' do
let(:pipeline) { create(:ci_empty_pipeline) }
-
+
before do
create(:generic_commit_status, pipeline: pipeline)
end