diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-23 21:10:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-23 21:10:44 +0000 |
commit | 5e450e9022861d03048cc733c20585ad0891f5aa (patch) | |
tree | 6a5eb2f639fe66b3fa52008e2f99c31e1ce2d60b /spec/lib | |
parent | c37dd28c4afd33fee46cff8ddfdada8a3f54564c (diff) | |
download | gitlab-ce-5e450e9022861d03048cc733c20585ad0891f5aa.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/background_migration/set_default_iteration_cadences_spec.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/lib/gitlab/background_migration/set_default_iteration_cadences_spec.rb b/spec/lib/gitlab/background_migration/set_default_iteration_cadences_spec.rb index 1f1877f5d2b..46c919f0854 100644 --- a/spec/lib/gitlab/background_migration/set_default_iteration_cadences_spec.rb +++ b/spec/lib/gitlab/background_migration/set_default_iteration_cadences_spec.rb @@ -58,12 +58,10 @@ RSpec.describe Gitlab::BackgroundMigration::SetDefaultIterationCadences, schema: context 'when an iteration cadence exists for a group' do let!(:group) { namespaces.create!(name: 'group', path: 'group') } - let!(:iterations_cadence_1) { iterations_cadences.create!(group_id: group.id, start_date: 5.days.ago, title: 'Cadence 1') } - let!(:iterations_cadence_2) { iterations_cadences.create!(group_id: group.id, start_date: 2.days.ago, title: 'Cadence 2') } + let!(:iterations_cadence_1) { iterations_cadences.create!(group_id: group.id, start_date: 2.days.ago, title: 'Cadence 1') } let!(:iteration_1) { iterations.create!(group_id: group.id, iid: 1, title: 'Iteration 1', start_date: 10.days.ago, due_date: 8.days.ago) } let!(:iteration_2) { iterations.create!(group_id: group.id, iterations_cadence_id: iterations_cadence_1.id, iid: 2, title: 'Iteration 2', start_date: 5.days.ago, due_date: 3.days.ago) } - let!(:iteration_3) { iterations.create!(group_id: group.id, iterations_cadence_id: iterations_cadence_2.id, iid: 3, title: 'Iteration 3', start_date: 2.days.ago, due_date: 1.day.ago) } subject { described_class.new.perform(group.id) } @@ -76,7 +74,6 @@ RSpec.describe Gitlab::BackgroundMigration::SetDefaultIterationCadences, schema: expect(iteration_1.reload.iterations_cadence_id).to eq(iterations_cadence_1.id) expect(iteration_2.reload.iterations_cadence_id).to eq(iterations_cadence_1.id) - expect(iteration_3.reload.iterations_cadence_id).to eq(iterations_cadence_2.id) end end end |