提交 c20acd13 编写于 作者: S Sean McGivern

Merge branch 'dz-add-cohort-spec' into 'master'

Increase code coverage for admin/cohorts page

See merge request !10964
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册