Commit 32bb98c4 authored by Yorick Peterse's avatar Yorick Peterse Committed by Alejandro Rodríguez

Fix import specs for the new ProjectCacheWorker

parent 9c529b3d
...@@ -1498,9 +1498,14 @@ describe Project, models: true do ...@@ -1498,9 +1498,14 @@ describe Project, models: true do
let(:mirror) { false } let(:mirror) { false }
before do before do
allow_any_instance_of(Gitlab::Shell).to receive(:import_repository).with(project.repository_storage_path, project.path_with_namespace, project.import_url).and_return(true) allow_any_instance_of(Gitlab::Shell).to receive(:import_repository).
with(project.repository_storage_path, project.path_with_namespace, project.import_url).
and_return(true)
allow(project).to receive(:repository_exists?).and_return(true) allow(project).to receive(:repository_exists?).and_return(true)
allow_any_instance_of(Repository).to receive(:build_cache).and_return(true)
expect_any_instance_of(Repository).to receive(:after_import).
and_call_original
end end
it 'imports a project' do it 'imports a project' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment