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

[#40942] fixed test expectation

Eric Schubert9c78ae5db62c
diff --git a/spec/requests/api/v3/relations_resource_spec.rb b/spec/requests/api/v3/relations_resource_spec.rb
index 6570e3796de..23a90e554a1 100644
--- a/spec/requests/api/v3/relations_resource_spec.rb
+++ b/spec/requests/api/v3/relations_resource_spec.rb
@@ -84,8 +84,8 @@ RSpec.describe "API v3 Relation resource" do
get path
end
- it_behaves_like "API V3 collection response", 1, 1, "Relation" do
- let(:elements) { [visible_relation] }
+ it_behaves_like "redirect response", 308 do
+ let(:location) { "/api/v3/relations?filters=%5B%7B%22involved%22%3A%7B%22operator%22%3A%22%3D%22%2C%22values%22%3A%5B%22#{work_package.id}%22%5D%7D%7D%5D" } # rubocop:disable Layout/LineLength
end
end