diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-03-17 10:14:39 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-03-17 10:14:39 +0300 |
commit | f451f777cc9dd12263179aecd3cf6235841d2e5e (patch) | |
tree | 125b46d149b5fc726e9d94f3d4def8d5ed8d1e03 /spec/helpers/milestones_helper_spec.rb | |
parent | 4bf4612cfbe73845391375bf721592426d7b4181 (diff) |
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.
Diffstat (limited to 'spec/helpers/milestones_helper_spec.rb')
-rw-r--r-- | spec/helpers/milestones_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/milestones_helper_spec.rb b/spec/helpers/milestones_helper_spec.rb index 77a4ba305bb..87653631c28 100644 --- a/spec/helpers/milestones_helper_spec.rb +++ b/spec/helpers/milestones_helper_spec.rb @@ -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 |