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

cohorts_spec.rb « instance_statistics « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 61294ec9af29dbfcf78d21cab187de57f60224c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'rails_helper'

describe 'Cohorts page' do
  before do
    sign_in(create(:admin))

    stub_application_setting(usage_ping_enabled: true)
  end

  it 'See users count per month' do
    2.times { create(:user) }

    visit instance_statistics_cohorts_path

    expect(page).to have_content("#{Time.now.strftime('%b %Y')} 3 0")
  end
end