diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-02 18:33:43 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-03 13:34:48 +0300 |
commit | 1e662293e8fc2f2eba9657dd27449e966736a14a (patch) | |
tree | 564290907477e5fee4ebabf2ad75fcc44086c938 /spec/requests/api/commits_spec.rb | |
parent | 9b2e17ac71ee446da0f34dada41401803af816c7 (diff) |
Implements Web IDE commits counter in Redis
This makes a temporary implementation of the
Web IDE commits counter using Redis while
https://gitlab.com/gitlab-org/gitlab-ce/issues/52096
is being discussed further for a more generic
approach to counters
Diffstat (limited to 'spec/requests/api/commits_spec.rb')
-rw-r--r-- | spec/requests/api/commits_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/commits_spec.rb b/spec/requests/api/commits_spec.rb index aebc24dd9a2..06ccf383362 100644 --- a/spec/requests/api/commits_spec.rb +++ b/spec/requests/api/commits_spec.rb @@ -279,9 +279,9 @@ describe API::Commits do end it 'does not increment the usage counters using access token authentication' do - post api(url, user), valid_c_params + expect(::Gitlab::WebIdeCommitsCounter).not_to receive(:increment) - expect_any_instance_of(::UsageCounters).not_to receive(:increment_counters) + post api(url, user), valid_c_params end it 'a new file in project repo' do |