summaryrefslogtreecommitdiff
path: root/spec/factories/projects.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-04-25 13:55:21 +0000
committerDouwe Maan <douwe@gitlab.com>2018-04-25 13:55:21 +0000
commit6587d3680e2c1f47c080636bdbbda59bdc8ba4d8 (patch)
tree6a8b00f4be97bd9fb13d96b98a7e073adca8c8eb /spec/factories/projects.rb
parent5beb4ddebfa23b288dc088c7175c2456d411f4f1 (diff)
parentec4423665cacfe2f0675fb8b9b5bd8dd17a77dd7 (diff)
downloadgitlab-ce-6587d3680e2c1f47c080636bdbbda59bdc8ba4d8.tar.gz
Merge branch 'zj-storage-path-deprecation' into 'master'
Legacy disk path refactor Closes gitaly#1111 See merge request gitlab-org/gitlab-ce!18364
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r--spec/factories/projects.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index 803498d3b19..1904615778c 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -147,7 +147,8 @@ FactoryBot.define do
# We delete hooks so that gitlab-shell will not try to authenticate with
# an API that isn't running
- FileUtils.rm_r(File.join(project.repository_storage_path, "#{project.disk_path}.git", 'hooks'))
+ project.gitlab_shell.rm_directory(project.repository_storage,
+ File.join("#{project.disk_path}.git", 'hooks'))
end
end
@@ -172,7 +173,8 @@ FactoryBot.define do
after(:create) do |project|
raise "Failed to create repository!" unless project.create_repository
- FileUtils.rm_r(File.join(project.repository_storage_path, "#{project.disk_path}.git", 'refs'))
+ project.gitlab_shell.rm_directory(project.repository_storage,
+ File.join("#{project.disk_path}.git", 'refs'))
end
end