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

adapt query parsing json error expectation due to gem bump

ulferts321ce3aa4d62
diff --git a/spec/services/api/v3/parse_query_params_service_spec.rb b/spec/services/api/v3/parse_query_params_service_spec.rb
index 46dffdf7130..f306c1cf3dc 100644
--- a/spec/services/api/v3/parse_query_params_service_spec.rb
+++ b/spec/services/api/v3/parse_query_params_service_spec.rb
@@ -188,7 +188,7 @@ RSpec.describe API::V3::ParseQueryParamsService,
end
it "returns the error" do
- message = 'unexpected token at \'faulty["status:desc"]\''
+ message = "unexpected token 'faulty[\"status:desc\"]' at line 1 column 1"
expect(subject.errors.messages[:base].length)
.to be(1)
@@ -266,8 +266,7 @@ RSpec.describe API::V3::ParseQueryParamsService,
end
it "returns the error" do
- message = "unexpected token at " +
- "'faulty[{\"status\":{\"operator\":\"=\"'"
+ message = "unexpected token 'faulty[{\"status\":{\"operator\":\"=\"' at line 1 column 1"
expect(subject.errors.messages[:base].length)
.to be(1)