summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-29 15:26:47 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-07 15:08:15 +0200
commitd953f1762ea9d4be0e53d5280b9f38224b39e67b (patch)
treed9e11ef04297f93b71b08d4e624d2cf9b1f24b9f /spec
parent01128b130b32fac3481fb3b386b649cb047b4b1f (diff)
downloadgitlab-ce-d953f1762ea9d4be0e53d5280b9f38224b39e67b.tar.gz
Improve readability of build stage id migration query
Diffstat (limited to 'spec')
-rw-r--r--spec/migrations/migrate_stage_id_reference_in_background_spec.rb4
1 files changed, 2 insertions, 2 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 1bd2c14b61c..63787d71233 100644
--- a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
+++ b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
@@ -58,11 +58,11 @@ describe MigrateStageIdReferenceInBackground, :migration, :sidekiq do
it 'schedules background migrations' do
Sidekiq::Testing.inline! do
- expect(jobs.where(stage_id: nil)).to be_present
+ expect(jobs.where(stage_id: nil).count).to eq 5
migrate!
- expect(jobs.where(stage_id: nil)).to be_one
+ expect(jobs.where(stage_id: nil).count).to eq 1
end
end
end