diff options
Diffstat (limited to 'spec/features/admin/admin_cohorts_spec.rb')
-rw-r--r-- | spec/features/admin/admin_cohorts_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/admin/admin_cohorts_spec.rb b/spec/features/admin/admin_cohorts_spec.rb new file mode 100644 index 00000000000..9dce9494b97 --- /dev/null +++ b/spec/features/admin/admin_cohorts_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +describe 'Admin cohorts page' do + before do + sign_in(create(:admin)) + end + + it '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 |