BigW Consortium Gitlab

Commit f016da62 by Rémy Coutable

Merge branch 'fix-make-time-test-more-reliable' into 'master'

Make the test less time sensitive by extending 0.2 days See merge request !10035
parents 4bf4612c f451f777
......@@ -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