Commit ae833a8b authored by Sean McGivern's avatar Sean McGivern

Fix user activities HTTP clone spec

parent 9bb9cbfd
...@@ -158,13 +158,6 @@ describe 'Git HTTP requests', lib: true do ...@@ -158,13 +158,6 @@ describe 'Git HTTP requests', lib: true do
expect(response).to have_http_status(:ok) expect(response).to have_http_status(:ok)
end end
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 end
context 'but only project members are allowed' do context 'but only project members are allowed' do
...@@ -263,6 +256,14 @@ describe 'Git HTTP requests', lib: true 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) expect(response.content_type.to_s).to eq(Gitlab::Workhorse::INTERNAL_API_CONTENT_TYPE)
end end
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 end
context "when an oauth token is provided" do context "when an oauth token is provided" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment