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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
79a132a3
Commit
79a132a3
authored
Jan 27, 2017
by
Douglas Barbosa Alexandre
Committed by
Fatih Acet
Feb 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec for Projects::Boards::ListsController
parent
860fafee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/controllers/projects/boards/lists_controller_spec.rb
spec/controllers/projects/boards/lists_controller_spec.rb
+1
-1
spec/fixtures/api/schemas/list.json
spec/fixtures/api/schemas/list.json
+1
-1
No files found.
spec/controllers/projects/boards/lists_controller_spec.rb
View file @
79a132a3
...
@@ -27,7 +27,7 @@ describe Projects::Boards::ListsController do
...
@@ -27,7 +27,7 @@ describe Projects::Boards::ListsController do
parsed_response
=
JSON
.
parse
(
response
.
body
)
parsed_response
=
JSON
.
parse
(
response
.
body
)
expect
(
response
).
to
match_response_schema
(
'lists'
)
expect
(
response
).
to
match_response_schema
(
'lists'
)
expect
(
parsed_response
.
length
).
to
eq
3
expect
(
parsed_response
.
length
).
to
eq
2
end
end
context
'with unauthorized user'
do
context
'with unauthorized user'
do
...
...
spec/fixtures/api/schemas/list.json
View file @
79a132a3
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
"id"
:
{
"type"
:
"integer"
},
"id"
:
{
"type"
:
"integer"
},
"list_type"
:
{
"list_type"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
"enum"
:
[
"
backlog"
,
"
label"
,
"done"
]
"enum"
:
[
"label"
,
"done"
]
},
},
"label"
:
{
"label"
:
{
"type"
:
[
"object"
,
"null"
],
"type"
:
[
"object"
,
"null"
],
...
...
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