Commit b3c3e71d authored by Jasper Maes's avatar Jasper Maes

[Rails5] fix Projects::VulnerabilityFeedbackController didn't match the schema

parent 5767f6a7
---
title: "[Rails5] fix Projects::VulnerabilityFeedbackController didn't match the schema"
merge_request: 6320
author: Jasper Maes
type: fixed
......@@ -160,8 +160,18 @@ describe Projects::VulnerabilityFeedbackController do
def create_feedback(user:, project:, params:)
sign_in(user)
post_params = {
namespace_id: project.namespace.to_param,
project_id: project,
vulnerability_feedback: params,
format: :json
}
post :create, namespace_id: project.namespace.to_param, project_id: project, vulnerability_feedback: params, format: :json
if Gitlab.rails5?
post :create, params: post_params, as: :json
else
post :create, post_params
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment