diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-01 14:15:31 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-01 18:11:09 +0300 |
commit | 9b2e17ac71ee446da0f34dada41401803af816c7 (patch) | |
tree | a352314d1cd94dcfd43566997f119d6bdc8730ce /spec/requests/api/commits_spec.rb | |
parent | d924176117f3cc73f539ed90b47e1912a3478cf0 (diff) |
Adds WebIDE commits to UsagePing
Implements UsageCounters model to track feature usage counters
and makes easy to extend for future counters
Diffstat (limited to 'spec/requests/api/commits_spec.rb')
-rw-r--r-- | spec/requests/api/commits_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/requests/api/commits_spec.rb b/spec/requests/api/commits_spec.rb index f3fb88474a4..aebc24dd9a2 100644 --- a/spec/requests/api/commits_spec.rb +++ b/spec/requests/api/commits_spec.rb @@ -278,6 +278,12 @@ 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_any_instance_of(::UsageCounters).not_to receive(:increment_counters) + end + it 'a new file in project repo' do post api(url, user), valid_c_params |