Commit 0b7ff7c5 authored by Matija Čupić's avatar Matija Čupić

Restyle background_migration spec

parent 3e309ea7
...@@ -5,13 +5,14 @@ require 'spec_helper' ...@@ -5,13 +5,14 @@ require 'spec_helper'
describe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration, schema: 20180916011959 do describe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration, schema: 20180916011959 do
let(:migration) { described_class.new } 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 let!(:external_pipeline) do
build(:ci_pipeline, source: Ci::Pipeline.sources[:unknown]) build(:ci_pipeline, source: :unknown)
.tap { |pipeline| pipeline.save(validate: false) } .tap { |pipeline| pipeline.save(validate: false) }
end end
let!(:second_external_pipeline) do let!(:second_external_pipeline) do
build(:ci_pipeline, source: Ci::Pipeline.sources[:unknown]) build(:ci_pipeline, source: :unknown)
.tap { |pipeline| pipeline.save(validate: false) } .tap { |pipeline| pipeline.save(validate: false) }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment