Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4675603b
Commit
4675603b
authored
Jun 28, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rails5] fix Boards::ListsController expected the response to have status code 200 but it was 403
parent
5767f6a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
ee/changelogs/unreleased/rails5-fix-6746.yml
ee/changelogs/unreleased/rails5-fix-6746.yml
+6
-0
ee/spec/controllers/boards/lists_controller_spec.rb
ee/spec/controllers/boards/lists_controller_spec.rb
+12
-5
No files found.
ee/changelogs/unreleased/rails5-fix-6746.yml
0 → 100644
View file @
4675603b
---
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
ee/spec/controllers/boards/lists_controller_spec.rb
View file @
4675603b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment