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
5a05606d
Commit
5a05606d
authored
Dec 15, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spec failure
parent
d1a7ecf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/requests/api/users_spec.rb
spec/requests/api/users_spec.rb
+5
-5
No files found.
spec/requests/api/users_spec.rb
View file @
5a05606d
...
...
@@ -1112,7 +1112,7 @@ describe API::Users, api: true do
get
api
(
"/user/activities"
,
user
)
expect
(
response
).
to
have_http_status
(
40
4
)
expect
(
response
).
to
have_http_status
(
40
3
)
end
end
...
...
@@ -1122,16 +1122,16 @@ describe API::Users, api: true do
get
api
(
"/user/activities"
,
admin
)
activity
=
json_response
.
fir
st
activity
=
json_response
.
la
st
expect
(
activity
[
'username'
]).
to
eq
(
user
.
username
)
expect
(
activity
[
'lat_activity_at'
]).
to
start_with
(
Date
.
today
.
year
.
to_s
)
expect
(
activity
[
'la
s
t_activity_at'
]).
to
start_with
(
Date
.
today
.
year
.
to_s
)
end
end
context
'last activities paginated'
do
context
'last activities paginated'
,
:redis
do
let
(
:activity
)
{
json_response
.
first
}
let
(
:old_date
)
{
1
.
year
.
ago
.
to_date
}
let
(
:old_date
)
{
2
.
months
.
ago
.
to_date
}
before
do
5
.
times
do
|
num
|
...
...
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