diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-04-27 15:14:31 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-04-27 15:14:31 +0000 |
commit | c20acd13f1edbb6bbd568db4cedcb917dcfb3e17 (patch) | |
tree | e825e9b488c9d389ef9e94aa31bc595d6535d18a | |
parent | ff4001947974ac837474827a30a553781e99347d (diff) | |
parent | 1c408df2e116228cfafe35c559ccfdf8c563380a (diff) | |
download | gitlab-ce-c20acd13f1edbb6bbd568db4cedcb917dcfb3e17.tar.gz |
Merge branch 'dz-add-cohort-spec' into 'master'
Increase code coverage for admin/cohorts page
See merge request !10964
-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..dd14ffdb2ce --- /dev/null +++ b/spec/features/admin/admin_cohorts_spec.rb @@ -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 |