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

[#60672] added another test case

Eric Schubertadf48b62b364
diff --git a/spec/lib/api/v3/projects/project_sql_collection_representer_rendering_spec.rb b/spec/lib/api/v3/projects/project_sql_collection_representer_rendering_spec.rb
index 20bbd234017..86b738f1d7f 100644
--- a/spec/lib/api/v3/projects/project_sql_collection_representer_rendering_spec.rb
+++ b/spec/lib/api/v3/projects/project_sql_collection_representer_rendering_spec.rb
@@ -154,6 +154,13 @@ RSpec.describe API::V3::Projects::ProjectSqlCollectionRepresenter, "rendering" d
let(:expected) { { total: 0 }.to_json }
it_behaves_like "successful rendering"
+
+ context "if total is selected together with another property" do
+ let(:select) { { "total" => {}, "count" => {} } }
+ let(:expected) { { total: 0, count: 0 }.to_json }
+
+ it_behaves_like "successful rendering"
+ end
end
end