Commit 85201751 authored by James Lopez's avatar James Lopez

Fix project spec after caching changes

As we now expire all caches and then call build_cache, we have to mock this in the spec as we are never creating an actual repo in the filesystem.
parent 9a956a02
......@@ -1490,6 +1490,7 @@ describe Project, models: true 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(project).to receive(:repository_exists?).and_return(true)
allow_any_instance_of(Repository).to receive(:build_cache).and_return(true)
end
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