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
Boxiang Sun
gitlab-ce
Commits
ae833a8b
Commit
ae833a8b
authored
Apr 17, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix user activities HTTP clone spec
parent
9bb9cbfd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
spec/requests/git_http_spec.rb
spec/requests/git_http_spec.rb
+8
-7
No files found.
spec/requests/git_http_spec.rb
View file @
ae833a8b
...
...
@@ -158,13 +158,6 @@ describe 'Git HTTP requests', lib: true do
expect
(
response
).
to
have_http_status
(
:ok
)
end
end
it
'updates the user last activity'
do
expect
(
user_activity
(
user
)).
to
be_nil
download
(
path
,
{})
do
|
response
|
expect
(
user_activity
(
user
)).
to
be_present
end
end
end
context
'but only project members are allowed'
do
...
...
@@ -263,6 +256,14 @@ describe 'Git HTTP requests', lib: true do
expect
(
response
.
content_type
.
to_s
).
to
eq
(
Gitlab
::
Workhorse
::
INTERNAL_API_CONTENT_TYPE
)
end
end
it
'updates the user last activity'
,
:redis
do
expect
(
user_activity
(
user
)).
to
be_nil
download
(
path
,
env
)
do
|
response
|
expect
(
user_activity
(
user
)).
to
be_present
end
end
end
context
"when an oauth token is provided"
do
...
...
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