2020-05-24 23:13:21 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe Gitlab::UsageDataCounters::DesignsCounter do
|
2020-05-24 23:13:21 +05:30
|
|
|
it_behaves_like 'a redis usage counter', 'Designs', :create
|
|
|
|
it_behaves_like 'a redis usage counter', 'Designs', :update
|
|
|
|
it_behaves_like 'a redis usage counter', 'Designs', :delete
|
|
|
|
|
|
|
|
it_behaves_like 'a redis usage counter with totals', :design_management_designs,
|
|
|
|
create: 5,
|
|
|
|
update: 3,
|
|
|
|
delete: 2
|
|
|
|
end
|