Increase code coverage for admin/cohorts page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2017-04-27 16:13:54 +03:00
parent 025b04f3e7
commit 1c408df2e1
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
require 'rails_helper'
feature 'Admin cohorts page', feature: true do
before do
login_as :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