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

Fix broken spec

Christophe Bliardaf45df9d1786
diff --git a/spec/models/query/results_sums_integration_spec.rb b/spec/models/query/results_sums_integration_spec.rb
index b1c7c652c32..0507b66259a 100644
--- a/spec/models/query/results_sums_integration_spec.rb
+++ b/spec/models/query/results_sums_integration_spec.rb
@@ -83,10 +83,10 @@ RSpec.describe Query::Results, "sums" do
float_cf.attribute_name => 3.414,
story_points: 7) do |wp|
wp.cost_entries << create(:cost_entry,
- work_package: wp,
+ entity: wp,
overridden_costs: 200)
wp.time_entries << create(:time_entry,
- work_package: wp,
+ entity: wp,
overridden_costs: 300)
end
end
@@ -101,10 +101,10 @@ RSpec.describe Query::Results, "sums" do
float_cf.attribute_name => 3.414,
story_points: 7) do |wp|
wp.cost_entries << create(:cost_entry,
- work_package: wp,
+ entity: wp,
overridden_costs: 200)
wp.time_entries << create(:time_entry,
- work_package: wp,
+ entity: wp,
overridden_costs: 300)
end
end