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-18 17:32:34 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-07-18 18:48:14 +0300
commit7bd5e571256aff6de132b118f04224e56abf3228 (patch)
tree4ec27daa73e2588299b73686ee8954ac299915b1 /spec/models/ci/pipeline_spec.rb
parent1ed6d1541c7973c08cdd4c1906ddcc0c3db893e3 (diff)
Instead of adding master, stub_not_protect_default_branch
Diffstat (limited to 'spec/models/ci/pipeline_spec.rb')
-rw-r--r--spec/models/ci/pipeline_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index bdfe8706b5e..bbd45f10b1b 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -734,8 +734,10 @@ describe Ci::Pipeline, models: true do
context 'on failure and build retry' do
before do
+ stub_not_protect_default_branch
+
build.drop
- project.add_master(user)
+ project.add_developer(user)
Ci::Build.retry(build, user)
end
@@ -999,7 +1001,9 @@ describe Ci::Pipeline, models: true do
let(:latest_status) { pipeline.statuses.latest.pluck(:status) }
before do
- project.add_master(user)
+ stub_not_protect_default_branch
+
+ project.add_developer(user)
end
context 'when there is a failed build and failed external status' do