Commit 946c2071 authored by Robert Speicher's avatar Robert Speicher

Update expected response codes for board list controllers

parent 54169e0c
...@@ -142,10 +142,10 @@ describe Boards::ListsController do ...@@ -142,10 +142,10 @@ describe Boards::ListsController do
end end
context 'with unauthorized user' do context 'with unauthorized user' do
it 'returns a forbidden 403 response' do it 'returns a 422 unprocessable entity response' do
move user: guest, board: board, list: planning, position: 6 move user: guest, board: board, list: planning, position: 6
expect(response).to have_gitlab_http_status(403) expect(response).to have_gitlab_http_status(422)
end end
end end
......
...@@ -162,10 +162,10 @@ describe Boards::ListsController do ...@@ -162,10 +162,10 @@ describe Boards::ListsController do
end end
context 'with unauthorized user' do context 'with unauthorized user' do
it 'returns a forbidden 403 response' do it 'returns a 422 unprocessable entity response' do
move user: guest, board: board, list: planning, position: 6 move user: guest, board: board, list: planning, position: 6
expect(response).to have_gitlab_http_status(403) expect(response).to have_gitlab_http_status(422)
end 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