summaryrefslogtreecommitdiff
path: root/spec/workers/repository_check
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2018-05-03 21:23:41 +0200
committerToon Claes <toon@gitlab.com>2018-05-07 09:42:09 +0200
commitca29aa114b200da81b2805dbe45fdc18a13400f9 (patch)
tree6274f8f5241c21cba674e416b55695a49a547aa4 /spec/workers/repository_check
parent3066de95f740df6a850c0ada2d0dd9a7cd5a097f (diff)
downloadgitlab-ce-ca29aa114b200da81b2805dbe45fdc18a13400f9.tar.gz
Project#repository_storage_path no longer exists
Diffstat (limited to 'spec/workers/repository_check')
-rw-r--r--spec/workers/repository_check/single_repository_worker_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/workers/repository_check/single_repository_worker_spec.rb b/spec/workers/repository_check/single_repository_worker_spec.rb
index ebd03a80826..1c9663bbab5 100644
--- a/spec/workers/repository_check/single_repository_worker_spec.rb
+++ b/spec/workers/repository_check/single_repository_worker_spec.rb
@@ -61,7 +61,7 @@ describe RepositoryCheck::SingleRepositoryWorker do
it 'creates missing wikis' do
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)
@@ -70,12 +70,12 @@ describe RepositoryCheck::SingleRepositoryWorker do
it 'does not create a wiki if the main repo does not exist at all' do
project = create(:project, :repository)
- Gitlab::Shell.new.rm_directory(project.repository_storage_path, project.path)
- Gitlab::Shell.new.rm_directory(project.repository_storage_path, project.wiki.path)
+ Gitlab::Shell.new.rm_directory(project.repository_storage, project.path)
+ Gitlab::Shell.new.rm_directory(project.repository_storage, project.wiki.path)
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
def break_wiki(project)