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:
Diffstat (limited to 'spec/factories/keys.rb')
-rw-r--r--spec/factories/keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/factories/keys.rb b/spec/factories/keys.rb
index 4bd41c1faa1..2cfe1372200 100644
--- a/spec/factories/keys.rb
+++ b/spec/factories/keys.rb
@@ -17,7 +17,7 @@ FactoryBot.define do
trait :expired_today do
to_create { |key| key.save!(validate: false) }
- expires_at { Date.today.beginning_of_day + 3.hours }
+ expires_at { Date.current.beginning_of_day + 3.hours }
end
trait :without_md5_fingerprint do