Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Replace Time.zone.now with current

Oliver Günther0e939d220484
diff --git a/spec/controllers/concerns/omniauth_login_spec.rb b/spec/controllers/concerns/omniauth_login_spec.rb
index e2bd9744abd..9fdd9481adb 100644
--- a/spec/controllers/concerns/omniauth_login_spec.rb
+++ b/spec/controllers/concerns/omniauth_login_spec.rb
@@ -177,7 +177,7 @@ RSpec.describe AccountController, :skip_2fa_stage do # rubocop:disable RSpec/Spe
auth_source_registration = omniauth_hash.merge(
omniauth: true,
- timestamp: Time.zone.now
+ timestamp: Time.current
)
session[:auth_source_registration] = auth_source_registration
post :register,