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

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

require 'spec_helper'

RSpec.describe Gitlab::UsageDataCounters::SnippetCounter do
  it_behaves_like 'a redis usage counter', 'Snippet', :create
  it_behaves_like 'a redis usage counter', 'Snippet', :update

  it_behaves_like 'a redis usage counter with totals', :snippet,
    create: 3,
    update: 2
end