summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-07-19 10:34:58 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-07-19 10:34:58 +0200
commitac4b954c5fabbfa98fb72d88526a30713a20af5d (patch)
treea1fccb6ca951e96374e54872b548f160decd034b /spec/support
parent416076610e7b1674669ad33bae604155f55a3d02 (diff)
downloadgitlab-ce-ac4b954c5fabbfa98fb72d88526a30713a20af5d.tar.gz
Rename authentication activity observer methods
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/prometheus/custom_matchers.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/prometheus/custom_matchers.rb b/spec/support/prometheus/custom_matchers.rb
new file mode 100644
index 00000000000..2ad3b8a7fce
--- /dev/null
+++ b/spec/support/prometheus/custom_matchers.rb
@@ -0,0 +1,5 @@
+RSpec::Matchers.define :increment do |counter|
+ match do |metric|
+ expect(metric.send(counter)).to receive(:increment)
+ end
+end