Commit 4675603b authored by Jasper Maes's avatar Jasper Maes

[Rails5] fix Boards::ListsController expected the response to have status code 200 but it was 403

parent 5767f6a7
---
title: "[Rails5] fix Boards::ListsController expected the response to have status
code 200 but it was 403"
merge_request: 6318
author: Jasper Maes
type: fixed
......@@ -149,11 +149,18 @@ describe Boards::ListsController do
def move(user:, board:, list:, position:)
sign_in(user)
patch :update, board_id: board.to_param,
id: list.to_param,
list: { position: position },
format: :json
params = {
board_id: board.to_param,
id: list.to_param,
list: { position: position },
format: :json
}
if Gitlab.rails5?
patch :update, params: params, as: :json
else
patch :update, 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