diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 00:08:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 00:08:11 +0300 |
commit | 19db7fd1fefc4e4249d4e55f409f321fdb85aed1 (patch) | |
tree | 0093c7fa3eb11954b49c828b78caae28f5fb97c2 /spec/serializers/entity_date_helper_spec.rb | |
parent | 8fa0c53e26c947ac647b8067fde3e9673b77b1a6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/entity_date_helper_spec.rb')
-rw-r--r-- | spec/serializers/entity_date_helper_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/serializers/entity_date_helper_spec.rb b/spec/serializers/entity_date_helper_spec.rb index a8c338675e2..5a4571339b3 100644 --- a/spec/serializers/entity_date_helper_spec.rb +++ b/spec/serializers/entity_date_helper_spec.rb @@ -48,7 +48,7 @@ RSpec.describe EntityDateHelper do describe '#remaining_days_in_words' do around do |example| - Timecop.freeze(Time.utc(2017, 3, 17)) { example.run } + travel_to(Time.utc(2017, 3, 17)) { example.run } end context 'when less than 31 days remaining' do @@ -75,7 +75,9 @@ RSpec.describe EntityDateHelper do end it 'returns 1 day remaining when queried mid-day' do - Timecop.freeze(Time.utc(2017, 3, 17, 13, 10)) do + travel_back + + travel_to(Time.utc(2017, 3, 17, 13, 10)) do expect(milestone_remaining).to eq("<strong>1</strong> day remaining") end end |