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

Lint: Use `Date.current` as suggested by Rubocop

Aaron Contreras8ff238bb5bc8
diff --git a/spec/services/work_packages/create_service_integration_spec.rb b/spec/services/work_packages/create_service_integration_spec.rb
index 529903920b3..19aa81896fb 100644
--- a/spec/services/work_packages/create_service_integration_spec.rb
+++ b/spec/services/work_packages/create_service_integration_spec.rb
@@ -119,8 +119,8 @@ RSpec.describe WorkPackages::CreateService, 'integration', type: :model do
project:,
done_ratio: 50,
parent:,
- start_date: Date.today,
- due_date: Date.today + 3.days }
+ start_date: Date.current,
+ due_date: Date.current + 3.days }
end
it 'creates the work_package with the provided attributes and sets the user as a watcher' do