diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-07-19 11:34:58 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-07-19 11:34:58 +0300 |
commit | ac4b954c5fabbfa98fb72d88526a30713a20af5d (patch) | |
tree | a1fccb6ca951e96374e54872b548f160decd034b /spec/support | |
parent | 416076610e7b1674669ad33bae604155f55a3d02 (diff) |
Rename authentication activity observer methods
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/prometheus/custom_matchers.rb | 5 |
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 |