Commit f451f777 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Make the test less time sensitive by extending 0.2

days. This shall fix:
https://gitlab.com/gitlab-org/gitlab-ce/builds/12411626

and other test failures for the same thing.
parent 4bf4612c
......@@ -50,10 +50,10 @@ describe MilestonesHelper do
describe '#milestone_remaining_days' do
context 'when less than 31 days remaining' do
let(:milestone_remaining) { milestone_remaining_days(build_stubbed(:milestone, due_date: 12.days.from_now)) }
let(:milestone_remaining) { milestone_remaining_days(build_stubbed(:milestone, due_date: 12.2.days.from_now)) }
it 'returns days remaining' do
expect(milestone_remaining).to eq("<strong>11</strong> days remaining")
expect(milestone_remaining).to eq("<strong>12</strong> days remaining")
end
end
......
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