Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/instance_statistics/cohorts_spec.rb')
-rw-r--r--spec/features/instance_statistics/cohorts_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/instance_statistics/cohorts_spec.rb b/spec/features/instance_statistics/cohorts_spec.rb
new file mode 100644
index 00000000000..81fc5eff980
--- /dev/null
+++ b/spec/features/instance_statistics/cohorts_spec.rb
@@ -0,0 +1,15 @@
+require 'rails_helper'
+
+describe 'Cohorts page' do
+ before do
+ sign_in(create(:admin))
+ end
+
+ it 'See users count per month' do
+ 2.times { create(:user) }
+
+ visit instance_statistics_cohorts_path
+
+ expect(page).to have_content("#{Time.now.strftime('%b %Y')} 3 0")
+ end
+end