gitlab-org--gitlab-foss/spec/features/instance_statistics/cohorts_spec.rb

18 lines
345 B
Ruby
Raw Normal View History

require 'rails_helper'
describe 'Cohorts page' do
before do
sign_in(create(:admin))
stub_application_setting(usage_ping_enabled: true)
end
2018-07-05 02:32:05 -04:00
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