summaryrefslogtreecommitdiff
path: root/spec/workers/repository_fork_worker_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-06-12 13:32:46 +0000
committerDouwe Maan <douwe@gitlab.com>2018-06-12 13:32:46 +0000
commit8b0d2283d77df0e99f5f49db3f78f6101ac1b8ef (patch)
treea3b9796d29da06ddf83fbe8dec1def9b972bec65 /spec/workers/repository_fork_worker_spec.rb
parenta2785eb82e0e016c71ed3d5d7747c52e6a2e9682 (diff)
parentf376347f24f24efc157d80de63381dd22d060630 (diff)
downloadgitlab-ce-8b0d2283d77df0e99f5f49db3f78f6101ac1b8ef.tar.gz
Merge branch 'gitaly-disk-access-3' into 'master'
Find and mark more Git disk access locations, part 2 See merge request gitlab-org/gitlab-ce!19437
Diffstat (limited to 'spec/workers/repository_fork_worker_spec.rb')
-rw-r--r--spec/workers/repository_fork_worker_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/workers/repository_fork_worker_spec.rb b/spec/workers/repository_fork_worker_spec.rb
index ae4786389c7..5d83397e8df 100644
--- a/spec/workers/repository_fork_worker_spec.rb
+++ b/spec/workers/repository_fork_worker_spec.rb
@@ -94,6 +94,9 @@ describe RepositoryForkWorker do
it_behaves_like 'RepositoryForkWorker performing'
it 'logs a message about forking with old-style arguments' do
+ allow(subject).to receive(:gitlab_shell).and_return(shell)
+ expect(shell).to receive(:fork_repository) { true }
+
allow(Rails.logger).to receive(:info).with(anything) # To compensate for other logs
expect(Rails.logger).to receive(:info).with("Project #{fork_project.id} is being forked using old-style arguments.")