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

count_issues_metric_spec.rb « instrumentations « metrics « usage « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 183aa03dd8a452547280244b12304db8a750d7f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::Usage::Metrics::Instrumentations::CountIssuesMetric do
  let_it_be(:issue) { create(:issue) }

  let(:expected_value) { 1 }
  let(:expected_query) { 'SELECT COUNT("issues"."id") FROM "issues"' }

  it_behaves_like 'a correct instrumented metric value and query', { time_frame: 'all' }
end