debian-mirror-gitlab/spec/features/admin/admin_cohorts_spec.rb
2017-09-10 17:25:29 +05:30

15 lines
286 B
Ruby

require 'rails_helper'
feature 'Admin cohorts page' do
before do
sign_in(create(:admin))
end
scenario 'See users count per month' do
2.times { create(:user) }
visit admin_cohorts_path
expect(page).to have_content("#{Time.now.strftime('%b %Y')} 3 0")
end
end