diff options
author | Sean McGivern <sean@gitlab.com> | 2017-04-17 14:23:39 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-04-17 14:23:39 +0100 |
commit | ae833a8b83bbdfa3ad95af56ca470e2ac51baadf (patch) | |
tree | 9605f48894716888cb8bba61175d87607ba3e5f2 /spec/requests | |
parent | 9bb9cbfd937a17056c598862d6617724eae86948 (diff) | |
download | gitlab-ce-ae833a8b83bbdfa3ad95af56ca470e2ac51baadf.tar.gz |
Fix user activities HTTP clone spec
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/git_http_spec.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb index 069ff4bdaa3..316742ff076 100644 --- a/spec/requests/git_http_spec.rb +++ b/spec/requests/git_http_spec.rb @@ -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 |