Increase code coverage for admin/cohorts page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
025b04f3e7
commit
1c408df2e1
|
@ -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
|
Loading…
Reference in New Issue