Skip to content
Snippets Groups Projects
Commit ae833a8b authored by Sean McGivern's avatar Sean McGivern
Browse files

Fix user activities HTTP clone spec

parent 9bb9cbfd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment