debian-mirror-gitlab/spec/controllers/admin/cohorts_controller_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
724 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Admin::CohortsController do
2021-03-11 19:13:27 +05:30
let(:user) { create(:admin) }
2020-11-24 15:15:51 +05:30
2021-03-11 19:13:27 +05:30
before do
sign_in(user)
2020-11-24 15:15:51 +05:30
end
2021-09-04 01:27:46 +05:30
describe 'GET #index' do
it_behaves_like 'tracking unique visits', :index do
let(:target_id) { 'i_analytics_cohorts' }
end
2022-10-11 01:57:18 +05:30
2022-11-25 23:54:43 +05:30
it_behaves_like 'Snowplow event tracking with RedisHLL context' do
2022-10-11 01:57:18 +05:30
subject { get :index }
let(:category) { described_class.name }
let(:action) { 'perform_analytics_usage_action' }
let(:label) { 'redis_hll_counters.analytics.analytics_total_unique_counts_monthly' }
let(:property) { 'i_analytics_cohorts' }
let(:namespace) { nil }
let(:project) { nil }
end
2020-11-24 15:15:51 +05:30
end
end