Restyle background_migration spec

This commit is contained in:
Matija Čupić 2018-09-28 23:47:55 +02:00
parent 3e309ea70d
commit 0b7ff7c57f
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -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