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

[#62429] added test data to test remaining hours

Eric Schubert0173c4fae13e
diff --git a/spec/models/types/patterns/token_property_mapper_spec.rb b/spec/models/types/patterns/token_property_mapper_spec.rb
index 3340c3d71d6..0001ad606c5 100644
--- a/spec/models/types/patterns/token_property_mapper_spec.rb
+++ b/spec/models/types/patterns/token_property_mapper_spec.rb
@@ -41,12 +41,13 @@ RSpec.describe Types::Patterns::TokenPropertyMapper do
shared_let(:work_package_parent) do
create(:work_package, project:, category:, start_date: Date.yesterday, estimated_hours: 120,
- due_date: 3.months.from_now, assigned_to: parent_assignee)
+ remaining_hours: 80, due_date: 3.months.from_now, assigned_to: parent_assignee)
end
shared_let(:work_package) do
create(:work_package, responsible:, project:, category:, due_date: 1.month.from_now, assigned_to: assignee,
- parent: work_package_parent, start_date: Time.zone.today, estimated_hours: 30)
+ parent: work_package_parent, start_date: Time.zone.today, estimated_hours: 30,
+ remaining_hours: 25)
end
shared_let(:string_custom_field) do