Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-07-20 16:06:11 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-07-20 16:06:11 +0300
commit33e11345e086678fce7591bcd1d465f879d838e7 (patch)
treed3faea3c4bead6c5080876ccb6c39e42683ef84d /spec/lib/gitlab/auth
parentac4b954c5fabbfa98fb72d88526a30713a20af5d (diff)
Add custom expectations for authentication activity metrics
Diffstat (limited to 'spec/lib/gitlab/auth')
-rw-r--r--spec/lib/gitlab/auth/activity_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/auth/activity_spec.rb b/spec/lib/gitlab/auth/activity_spec.rb
index 311c29010b3..7d22b1f3c4f 100644
--- a/spec/lib/gitlab/auth/activity_spec.rb
+++ b/spec/lib/gitlab/auth/activity_spec.rb
@@ -3,8 +3,8 @@ require 'spec_helper'
describe Gitlab::Auth::Activity do
describe 'counters' do
it 'has all static counters defined' do
- described_class::COUNTERS.each_key do |metric|
- expect(described_class).to respond_to("#{metric}_counter")
+ described_class.each_counter do |counter|
+ expect(described_class).to respond_to(counter)
end
end
end