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

Pass datetime to column

Oliver Günthere4238f96b9b5
diff --git a/spec/controllers/account_controller_spec.rb b/spec/controllers/account_controller_spec.rb
index ff8d50a85d0..781c767f575 100644
--- a/spec/controllers/account_controller_spec.rb
+++ b/spec/controllers/account_controller_spec.rb
@@ -1054,7 +1054,7 @@ describe AccountController, type: :controller do
context 'with an expired token' do
before do
- token.update_column :expires_on, Date.today - 1.day
+ token.update_column :expires_on, 1.day.ago
post :activate, params: activation_params
end