summaryrefslogtreecommitdiff
path: root/spec/tasks
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2018-11-23 05:33:07 +0100
committerGabriel Mazetto <brodock@gmail.com>2018-11-26 23:39:05 +0100
commitfe2e6c6dc046748f8760bfbb3c74185bdbf1359b (patch)
tree2e95576786cb3936b7442c420a5ccf42ddfa266d /spec/tasks
parentdeaf3af7e5f357f3e8d91f7f2d49ad3ce001ba68 (diff)
downloadgitlab-ce-53778-remove-site-statistics.tar.gz
Remove Site Statistic53778-remove-site-statistics
This approach caused many different problems as we tightened the query execution timeout.
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/site_statistics_rake_spec.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/tasks/gitlab/site_statistics_rake_spec.rb b/spec/tasks/gitlab/site_statistics_rake_spec.rb
deleted file mode 100644
index c43ce25a540..00000000000
--- a/spec/tasks/gitlab/site_statistics_rake_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-# frozen_string_literal: true
-require 'rake_helper'
-
-describe 'rake gitlab:refresh_site_statistics' do
- before do
- Rake.application.rake_require 'tasks/gitlab/site_statistics'
-
- create(:project)
- SiteStatistic.fetch.update(repositories_count: 0)
- end
-
- let(:task) { 'gitlab:refresh_site_statistics' }
-
- it 'recalculates existing counters' do
- run_rake_task(task)
-
- expect(SiteStatistic.fetch.repositories_count).to eq(1)
- end
-
- it 'displays message listing counters' do
- expect { run_rake_task(task) }.to output(/Updating Site Statistics counters:.* Repositories\.\.\. OK!/m).to_stdout
- end
-end