summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2019-02-13 23:38:11 +0100
committerPeter Marko <peter.marko@siemens.com>2019-05-29 16:08:25 +0200
commit40490cc4922fedbf4512109429cdc2c5aed65ded (patch)
treebb2be4aa53b223c2031c3accd4b5398ab90b7598 /spec/workers
parent106f449d6938280452c52e1ee86461e5ceed685e (diff)
downloadgitlab-ce-40490cc4922fedbf4512109429cdc2c5aed65ded.tar.gz
Add wiki size to project statistics
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/project_cache_worker_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/workers/project_cache_worker_spec.rb b/spec/workers/project_cache_worker_spec.rb
index 3c40269adc7..51afb076da1 100644
--- a/spec/workers/project_cache_worker_spec.rb
+++ b/spec/workers/project_cache_worker_spec.rb
@@ -25,10 +25,11 @@ describe ProjectCacheWorker do
end
context 'with an existing project without a repository' do
- it 'does nothing' do
+ it 'updates statistics but does not refresh the method cashes' do
allow_any_instance_of(Repository).to receive(:exists?).and_return(false)
- expect(worker).not_to receive(:update_statistics)
+ expect(worker).to receive(:update_statistics)
+ expect_any_instance_of(Repository).not_to receive(:refresh_method_caches)
worker.perform(project.id)
end