summaryrefslogtreecommitdiff
path: root/spec/frontend/fixtures/freeze_period.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/fixtures/freeze_period.rb')
-rw-r--r--spec/frontend/fixtures/freeze_period.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/frontend/fixtures/freeze_period.rb b/spec/frontend/fixtures/freeze_period.rb
index 7695dbc2e8f..193bd0c3ef2 100644
--- a/spec/frontend/fixtures/freeze_period.rb
+++ b/spec/frontend/fixtures/freeze_period.rb
@@ -17,6 +17,15 @@ RSpec.describe 'Freeze Periods (JavaScript fixtures)' do
remove_repository(project)
end
+ around do |example|
+ freeze_time do
+ # Mock time to sept 19 (intl. talk like a pirate day)
+ Timecop.travel(2020, 9, 19)
+
+ example.run
+ end
+ end
+
describe API::FreezePeriods, '(JavaScript fixtures)', type: :request do
include ApiHelpers