debian-mirror-gitlab/spec/features/instance_statistics/cohorts_spec.rb

20 lines
371 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2019-12-04 20:38:33 +05:30
require 'spec_helper'
2018-11-18 11:00:15 +05:30
describe 'Cohorts page' do
before do
sign_in(create(:admin))
2018-11-20 20:47:30 +05:30
stub_application_setting(usage_ping_enabled: true)
2018-11-18 11:00:15 +05:30
end
it 'See users count per month' do
2020-03-13 15:44:24 +05:30
create_list(:user, 2)
2018-11-18 11:00:15 +05:30
visit instance_statistics_cohorts_path
expect(page).to have_content("#{Time.now.strftime('%b %Y')} 3 0")
end
end