Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-11 06:10:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-11 06:10:33 +0300
commitfecccb42ab4541b243dbd0f112b55433e95f3f59 (patch)
treeae74804a4a9b61a816c544d29de5a65d69a81a6a /spec/support_specs/time_travel_spec.rb
parent5eba9c0d33571d25d5e0d1d7bb49a3ddfc95cf02 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support_specs/time_travel_spec.rb')
-rw-r--r--spec/support_specs/time_travel_spec.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/support_specs/time_travel_spec.rb b/spec/support_specs/time_travel_spec.rb
index 8d80a889443..8fa51c0c1f0 100644
--- a/spec/support_specs/time_travel_spec.rb
+++ b/spec/support_specs/time_travel_spec.rb
@@ -9,18 +9,6 @@ RSpec.describe 'time travel' do
end
end
- describe ':time_travel' do
- today = Date.current
-
- it 'time-travels by the given duration', time_travel: 3.days do
- expect(Date.current).to eq(today + 3.days)
- end
-
- it 'works with negative durations', time_travel: -5.days do
- expect(Date.current).to eq(today - 5.days)
- end
- end
-
describe ':time_travel_to' do
it 'time-travels to the specified date', time_travel_to: '2020-01-01' do
expect(Date.current).to eq(Date.new(2020, 1, 1))