BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
8e70cf25
Unverified
Commit
8e70cf25
authored
Oct 11, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addresses Robert's feedback
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
33ce1976
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
projects.md
doc/api/projects.md
+1
-1
users.md
doc/api/users.md
+1
-1
users_spec.rb
spec/requests/api/users_spec.rb
+3
-2
No files found.
doc/api/projects.md
View file @
8e70cf25
...
...
@@ -436,7 +436,7 @@ Parameters:
### Get project events
Get the events for the specified project.
Sorted from newest to
lat
est
Sorted from newest to
old
est
```
GET /projects/:id/events
...
...
doc/api/users.md
View file @
8e70cf25
...
...
@@ -630,7 +630,7 @@ Will return `200 OK` on success, `404 User Not Found` is user cannot be found or
### Get user contribution events
Get the contribution events for the specified user, sorted from newest to
lat
est.
Get the contribution events for the specified user, sorted from newest to
old
est.
```
GET /users/:id/events
...
...
spec/requests/api/users_spec.rb
View file @
8e70cf25
...
...
@@ -898,7 +898,6 @@ describe API::API, api: true do
describe
'GET /user/:id/events'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:lambda_user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:note
)
{
create
(
:note_on_issue
,
note:
'What an awesome day!'
,
project:
project
)
}
...
...
@@ -909,7 +908,9 @@ describe API::API, api: true do
context
"as a user than cannot see the event's project"
do
it
'returns no events'
do
get
api
(
"/users/
#{
user
.
id
}
/events"
,
lambda_user
)
other_user
=
create
(
:user
)
get
api
(
"/users/
#{
user
.
id
}
/events"
,
other_user
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
json_response
).
to
be_empty
...
...
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