2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe Gitlab::UsageDataCounters::WikiPageCounter do
|
2020-10-24 23:57:45 +05:30
|
|
|
it_behaves_like 'a redis usage counter', 'Wiki Page', :view
|
2019-10-12 21:52:04 +05:30
|
|
|
it_behaves_like 'a redis usage counter', 'Wiki Page', :create
|
|
|
|
it_behaves_like 'a redis usage counter', 'Wiki Page', :update
|
|
|
|
it_behaves_like 'a redis usage counter', 'Wiki Page', :delete
|
|
|
|
|
|
|
|
it_behaves_like 'a redis usage counter with totals', :wiki_pages,
|
2020-10-24 23:57:45 +05:30
|
|
|
view: 8,
|
2019-10-12 21:52:04 +05:30
|
|
|
create: 5,
|
|
|
|
update: 3,
|
|
|
|
delete: 2
|
|
|
|
end
|