Commit f72b895b authored by Mario de la Ossa's avatar Mario de la Ossa

Fix flaky iterations_finder_spec

parent e8163573
...@@ -99,7 +99,7 @@ describe IterationsFinder do ...@@ -99,7 +99,7 @@ describe IterationsFinder do
end end
it 'returns iterations which start before the timeframe' do it 'returns iterations which start before the timeframe' do
iteration = create(:iteration, :skip_future_date_validation, project: project_2, start_date: now - 5.days) iteration = create(:iteration, :skip_future_date_validation, project: project_2, start_date: now - 5.days, due_date: now - 3.days)
params.merge!(start_date: now - 3.days, end_date: now - 2.days) params.merge!(start_date: now - 3.days, end_date: now - 2.days)
expect(subject).to match_array([iteration]) expect(subject).to match_array([iteration])
......
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