diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-07-27 16:12:35 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-07-27 16:12:35 +0300 |
commit | ed81ee9ba2b5a0b68996ccb238bfa4c69a6df062 (patch) | |
tree | 831e186cd5ed4072a0883c4eac563cbcd9c70f23 /spec/features/instance_statistics | |
parent | 636ea40e182fca92e89facbcb52445fcefef9506 (diff) |
Revert "Merge branch '41416-making-instance-wide-data-tools-more-accessible' into 'master'"
This reverts merge request !20679
Diffstat (limited to 'spec/features/instance_statistics')
-rw-r--r-- | spec/features/instance_statistics/cohorts_spec.rb | 15 | ||||
-rw-r--r-- | spec/features/instance_statistics/conversational_development_index_spec.rb | 40 |
2 files changed, 0 insertions, 55 deletions
diff --git a/spec/features/instance_statistics/cohorts_spec.rb b/spec/features/instance_statistics/cohorts_spec.rb deleted file mode 100644 index 81fc5eff980..00000000000 --- a/spec/features/instance_statistics/cohorts_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -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 diff --git a/spec/features/instance_statistics/conversational_development_index_spec.rb b/spec/features/instance_statistics/conversational_development_index_spec.rb deleted file mode 100644 index d441a7a5af9..00000000000 --- a/spec/features/instance_statistics/conversational_development_index_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -require 'spec_helper' - -describe 'Conversational Development Index' do - before do - sign_in(create(:admin)) - end - - context 'when usage ping is disabled' do - it 'shows empty state' do - stub_application_setting(usage_ping_enabled: false) - - visit instance_statistics_conversational_development_index_index_path - - expect(page).to have_content('Usage ping is not enabled') - end - end - - context 'when there is no data to display' do - it 'shows empty state' do - stub_application_setting(usage_ping_enabled: true) - - visit instance_statistics_conversational_development_index_index_path - - expect(page).to have_content('Data is still calculating') - end - end - - context 'when there is data to display' do - it 'shows numbers for each metric' do - stub_application_setting(usage_ping_enabled: true) - create(:conversational_development_index_metric) - - visit instance_statistics_conversational_development_index_index_path - - expect(page).to have_content( - 'Issues created per active user 1.2 You 9.3 Lead 13.3%' - ) - end - end -end |