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
c1126d2b
Commit
c1126d2b
authored
Feb 05, 2019
by
Camil Staps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test style
parent
3123be9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
spec/requests/api/projects_spec.rb
spec/requests/api/projects_spec.rb
+4
-3
No files found.
spec/requests/api/projects_spec.rb
View file @
c1126d2b
...
@@ -2178,7 +2178,8 @@ describe API::Projects do
...
@@ -2178,7 +2178,8 @@ describe API::Projects do
expect
(
response
).
to
have_gitlab_http_status
(
200
)
expect
(
response
).
to
have_gitlab_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
).
to
be_an
Array
expect
(
json_response
).
to
be_an
Array
expect
(
json_response
.
map
{
|
p
|
p
[
'starred_since'
].
present?
&&
p
[
'user'
].
present?
})
expect
(
json_response
[
0
][
'starred_since'
]).
to
be_present
expect
(
json_response
[
0
][
'user'
]).
to
be_present
end
end
it
'returns the proper security headers'
do
it
'returns the proper security headers'
do
...
@@ -2188,8 +2189,8 @@ describe API::Projects do
...
@@ -2188,8 +2189,8 @@ describe API::Projects do
end
end
end
end
let
(
:public_project
)
{
create
(
:project
,
:public
)
}
let
(
:public_project
)
{
create
(
:project
,
:public
)
}
let
(
:private_user
)
{
create
(
:user
,
private_profile:
true
)
}
let
(
:private_user
)
{
create
(
:user
,
private_profile:
true
)
}
before
do
before
do
user
.
update
(
starred_projects:
[
public_project
])
user
.
update
(
starred_projects:
[
public_project
])
...
...
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