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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-21 14:12:45 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-21 14:12:45 +0300
commitb82de0f0087a91165a7306fa9fe11a0cbc48fcd5 (patch)
treeec9aba0ff75b628dc0cb9303525e63cd4471305a /spec/models/ci
parent585e6a992fcd1baa712ae436bbacd76672f614c8 (diff)
Reduce stage seeds coupling between pipeline and YAML
This is a first step to decouple pipeline from YAML processing. It reduces the coupling by removing some methods that introduce coupling and by moving logic into separate chain element that is being used to populate pipelines with stages and builds.
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/pipeline_spec.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index 0ceb25153ab..3d8047ca3ac 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -253,14 +253,6 @@ describe Ci::Pipeline, :mailer do
end
end
- describe '#seeds_size' do
- let(:pipeline) { build(:ci_pipeline_with_one_job) }
-
- it 'returns number of jobs in stage seeds' do
- expect(pipeline.seeds_size).to eq 1
- end
- end
-
describe '#legacy_stages' do
subject { pipeline.legacy_stages }
@@ -590,20 +582,6 @@ describe Ci::Pipeline, :mailer do
end
end
- describe '#has_stage_seeds?' do
- context 'when pipeline has stage seeds' do
- subject { build(:ci_pipeline_with_one_job) }
-
- it { is_expected.to have_stage_seeds }
- end
-
- context 'when pipeline does not have stage seeds' do
- subject { create(:ci_pipeline_without_jobs) }
-
- it { is_expected.not_to have_stage_seeds }
- end
- end
-
describe '#has_warnings?' do
subject { pipeline.has_warnings? }