summaryrefslogtreecommitdiff
path: root/spec/migrations
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-28 12:01:52 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-28 12:01:52 +0200
commit98992c4e4b3231a99eb5ff17c44e96fe79a6cff2 (patch)
treee8c8a1ae310303bb6af32cdf53b68bf691b1d867 /spec/migrations
parentb21ee2ee36e1aaddbe0b3541a8cac5f117143b66 (diff)
downloadgitlab-ce-98992c4e4b3231a99eb5ff17c44e96fe79a6cff2.tar.gz
Add initial build stage_id ref background migration
Diffstat (limited to 'spec/migrations')
-rw-r--r--spec/migrations/migrate_stage_id_reference_in_background_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
index f86ef834afa..ea3a18802d9 100644
--- a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
+++ b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
@@ -22,5 +22,10 @@ describe MigrateStageIdReferenceInBackground, :migration, :redis do
end
it 'schedules background migrations' do
+ expect(jobs.where(stage_id: nil)).to be_present
+
+ migrate!
+
+ expect(jobs.where(stage_id: nil)).to be_empty
end
end