diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-28 12:01:52 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-07 15:07:29 +0200 |
commit | b7d672328db358690d043aae8b5fc24c358a52ab (patch) | |
tree | c3c79c0c0e39a93e8475d88cd8190a98e65cfe17 /spec | |
parent | 16ae7b7a49314b2525f3f32c07dd8a4891fa74e1 (diff) | |
download | gitlab-ce-b7d672328db358690d043aae8b5fc24c358a52ab.tar.gz |
Add initial build stage_id ref background migration
Diffstat (limited to 'spec')
-rw-r--r-- | spec/migrations/migrate_stage_id_reference_in_background_spec.rb | 5 |
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 |