diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-07-20 16:06:11 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-07-20 16:06:11 +0300 |
commit | 33e11345e086678fce7591bcd1d465f879d838e7 (patch) | |
tree | d3faea3c4bead6c5080876ccb6c39e42683ef84d /spec/lib/gitlab/auth | |
parent | ac4b954c5fabbfa98fb72d88526a30713a20af5d (diff) |
Add custom expectations for authentication activity metrics
Diffstat (limited to 'spec/lib/gitlab/auth')
-rw-r--r-- | spec/lib/gitlab/auth/activity_spec.rb | 4 |
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 |