blob: f0ee6c38f2ec7ae805cf2e6f5583909b9a52cb50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Usage::Metrics::Instrumentations::ActiveUserCountMetric do
before do
create(:user)
end
it_behaves_like 'a correct instrumented metric value', { time_frame: 'none', data_source: 'ruby' } do
let(:expected_value) { ::User.active.count }
end
end
|