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

Increase spec understandability

ulfertsa9f1de155918
diff --git a/spec/models/users/scopes/having_reminder_mail_to_send_spec.rb b/spec/models/users/scopes/having_reminder_mail_to_send_spec.rb
index ceb106b5ee2..c04d8052ef8 100644
--- a/spec/models/users/scopes/having_reminder_mail_to_send_spec.rb
+++ b/spec/models/users/scopes/having_reminder_mail_to_send_spec.rb
@@ -153,7 +153,7 @@ describe User, '.having_reminder_mail_to_send', type: :model do
]
}
end
- let(:scope_time) { Time.current - 2.hours }
+ let(:scope_time) { current_utc_time - 2.hours }
it 'is empty' do
expect(scope)