diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-09-28 23:56:56 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-09-28 23:56:56 +0200 |
commit | c0716421fac7494bfad058f2608095687be49773 (patch) | |
tree | 42fbef3b795d2155213cf53c13099a1b0f4e52d5 | |
parent | 0b7ff7c57f2c12bdd401dafe6f9addf29e8d348f (diff) | |
download | gitlab-ce-c0716421fac7494bfad058f2608095687be49773.tar.gz |
Refactor pipeline id ordering
-rw-r--r-- | spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb b/spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb index 1a1193fa1fa..05a95cb5ba4 100644 --- a/spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb +++ b/spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb @@ -6,6 +6,7 @@ describe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration let(:migration) { described_class.new } let!(:internal_pipeline) { create(:ci_pipeline, source: :web) } + let(:pipelines) { [internal_pipeline, external_pipeline, second_external_pipeline].map(&:id) } let!(:external_pipeline) do build(:ci_pipeline, source: :unknown) @@ -21,7 +22,7 @@ describe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration create(:ci_build, pipeline: internal_pipeline) end - subject { migration.perform(external_pipeline.id, second_external_pipeline.id) } + subject { migration.perform(pipelines.min, pipelines.max) } it 'populates the pipeline source' do subject |