Commit ca29aa11 authored by Toon Claes's avatar Toon Claes

Project#repository_storage_path no longer exists

parent 3066de95
...@@ -61,7 +61,7 @@ describe RepositoryCheck::SingleRepositoryWorker do ...@@ -61,7 +61,7 @@ describe RepositoryCheck::SingleRepositoryWorker do
it 'creates missing wikis' do it 'creates missing wikis' do
project = create(:project, :wiki_enabled) project = create(:project, :wiki_enabled)
Gitlab::Shell.new.rm_directory(project.repository_storage_path, project.wiki.path) Gitlab::Shell.new.rm_directory(project.repository_storage, project.wiki.path)
subject.perform(project.id) subject.perform(project.id)
...@@ -70,12 +70,12 @@ describe RepositoryCheck::SingleRepositoryWorker do ...@@ -70,12 +70,12 @@ describe RepositoryCheck::SingleRepositoryWorker do
it 'does not create a wiki if the main repo does not exist at all' do it 'does not create a wiki if the main repo does not exist at all' do
project = create(:project, :repository) project = create(:project, :repository)
Gitlab::Shell.new.rm_directory(project.repository_storage_path, project.path) Gitlab::Shell.new.rm_directory(project.repository_storage, project.path)
Gitlab::Shell.new.rm_directory(project.repository_storage_path, project.wiki.path) Gitlab::Shell.new.rm_directory(project.repository_storage, project.wiki.path)
subject.perform(project.id) subject.perform(project.id)
expect(Gitlab::Shell.new.exists?(project.repository_storage_path, project.wiki.path)).to eq(false) expect(Gitlab::Shell.new.exists?(project.repository_storage, project.wiki.path)).to eq(false)
end end
def break_wiki(project) def break_wiki(project)
......
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