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

count_boards_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: 6f03c5a9ae39b279ef7e7e864b005e530be9937e (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::CountBoardsMetric do
  let_it_be(:board) { create(:board) }

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

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