diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-09-29 00:47:55 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-09-29 00:47:55 +0300 |
commit | 0b7ff7c57f2c12bdd401dafe6f9addf29e8d348f (patch) | |
tree | a2ef8db0e4eb478a439420d1d911e4e8920fa922 /spec | |
parent | 3e309ea70dd3c91a618a0b59b386244d44ec594a (diff) |
Restyle background_migration spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb | 7 |
1 files changed, 4 insertions, 3 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 d95077beb59..1a1193fa1fa 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 @@ -5,13 +5,14 @@ require 'spec_helper' describe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration, schema: 20180916011959 do let(:migration) { described_class.new } - let!(:internal_pipeline) { create(:ci_pipeline, source: Ci::Pipeline.sources[:web]) } + let!(:internal_pipeline) { create(:ci_pipeline, source: :web) } + let!(:external_pipeline) do - build(:ci_pipeline, source: Ci::Pipeline.sources[:unknown]) + build(:ci_pipeline, source: :unknown) .tap { |pipeline| pipeline.save(validate: false) } end let!(:second_external_pipeline) do - build(:ci_pipeline, source: Ci::Pipeline.sources[:unknown]) + build(:ci_pipeline, source: :unknown) .tap { |pipeline| pipeline.save(validate: false) } end |