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
e7685980
Commit
e7685980
authored
Feb 21, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace a shared example by a custom matcher
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
7442a614
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
spec/requests/api/users_spec.rb
spec/requests/api/users_spec.rb
+1
-4
No files found.
spec/requests/api/users_spec.rb
View file @
e7685980
...
@@ -1161,10 +1161,6 @@ describe API::Users, api: true do
...
@@ -1161,10 +1161,6 @@ describe API::Users, api: true do
end
end
context
"user activities"
,
:redis
do
context
"user activities"
,
:redis
do
it_behaves_like
'a paginated resources'
do
let
(
:request
)
{
get
api
(
"/user/activities"
,
admin
)
}
end
context
'last activity as normal user'
do
context
'last activity as normal user'
do
it
'has no permission'
do
it
'has no permission'
do
user
.
record_activity
user
.
record_activity
...
@@ -1185,6 +1181,7 @@ describe API::Users, api: true do
...
@@ -1185,6 +1181,7 @@ describe API::Users, api: true do
activity
=
json_response
.
last
activity
=
json_response
.
last
expect
(
response
).
to
include_pagination_headers
expect
(
activity
[
'username'
]).
to
eq
(
user
.
username
)
expect
(
activity
[
'username'
]).
to
eq
(
user
.
username
)
expect
(
activity
[
'last_activity_at'
]).
to
eq
(
'2000-01-01 00:00:00'
)
expect
(
activity
[
'last_activity_at'
]).
to
eq
(
'2000-01-01 00:00:00'
)
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