summaryrefslogtreecommitdiff
path: root/spec/features/admin/admin_cohorts_spec.rb
blob: bca52bf674c5da3f00a8b5dbbb27e0cb563d2ce3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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