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

29 lines
612 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-06-23 00:09:42 +05:30
RSpec.describe InstanceStatistics::CohortsController do
2018-11-20 20:47:30 +05:30
let(:user) { create(:user) }
before do
sign_in(user)
end
2018-11-18 11:00:15 +05:30
it_behaves_like 'instance statistics availability'
2018-11-20 20:47:30 +05:30
it 'renders a 404 when the usage ping is disabled' do
stub_application_setting(usage_ping_enabled: false)
get :index
expect(response).to have_gitlab_http_status(:not_found)
end
2020-07-28 23:09:34 +05:30
describe 'GET #index' do
it_behaves_like 'tracking unique visits', :index do
let(:request_params) { {} }
let(:target_id) { 'i_analytics_cohorts' }
end
end
2018-11-18 11:00:15 +05:30
end