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:
authorTiger <twatson@gitlab.com>2019-03-04 02:56:20 +0300
committerTiger <twatson@gitlab.com>2019-03-20 04:04:40 +0300
commit00f0d356b71fa87f8190810b01add0cc4586e90a (patch)
treee6b59c822bba6db3ea1e80079e644d010b84f806 /spec/features
parent42ca9c6f0de34dfa7ae09cc0e9672ea5857afd38 (diff)
Create framework for build prerequisites
Introduces the concept of Prerequisites for a CI build. If a build has unmet prerequisites it will go through the :preparing state before being made available to a runner. There are no actual prerequisites yet, so current behaviour is unchanged.
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/badges/pipeline_badge_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/projects/badges/pipeline_badge_spec.rb b/spec/features/projects/badges/pipeline_badge_spec.rb
index 96efa06d843..4ac4e8f0fcb 100644
--- a/spec/features/projects/badges/pipeline_badge_spec.rb
+++ b/spec/features/projects/badges/pipeline_badge_spec.rb
@@ -47,10 +47,11 @@ describe 'Pipeline Badge' do
before do
# Prevent skipping directly to 'pending'
allow(Ci::BuildPrepareWorker).to receive(:perform_async)
+ allow(job).to receive(:prerequisites).and_return([double])
end
it 'displays the preparing badge' do
- job.prepare
+ job.enqueue
visit pipeline_project_badges_path(project, ref: ref, format: :svg)