summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-05-30 18:07:57 +0200
committerJacob Vosmaer <jacob@gitlab.com>2018-05-30 18:47:23 +0200
commit6d6e172fbca37f9ba0f39cb333689e9cf42d11fe (patch)
treeddfbeafede7bbdabc28b997da3861dbeaaa35c85
parent702bd66bd735a260b7594a53d2998e90ca7558e9 (diff)
downloadgitlab-ce-6d6e172fbca37f9ba0f39cb333689e9cf42d11fe.tar.gz
Fix helper
-rw-r--r--spec/lib/gitlab/git/repository_spec.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/lib/gitlab/git/repository_spec.rb b/spec/lib/gitlab/git/repository_spec.rb
index 5146a691eba..1510e842b6e 100644
--- a/spec/lib/gitlab/git/repository_spec.rb
+++ b/spec/lib/gitlab/git/repository_spec.rb
@@ -704,11 +704,6 @@ describe Gitlab::Git::Repository, seed_helper: true do
let(:new_repository) do
Gitlab::Git::Repository.new('default', 'my_project.git', '')
end
- let(:new_repository_path) do
- Gitlab::GitalyClient::StorageSettings.allow_disk_access do
- Gitlab::Git::Repository.new('default', 'my_project.git', '')
- end
- end
subject { new_repository.fetch_repository_as_mirror(repository) }
@@ -753,6 +748,12 @@ describe Gitlab::Git::Repository, seed_helper: true do
context 'with gitaly enabled', :skip_gitaly_mock do
it_behaves_like 'repository mirror fecthing'
end
+
+ def new_repository_path
+ Gitlab::GitalyClient::StorageSettings.allow_disk_access do
+ new_repository.path
+ end
+ end
end
describe '#remote_tags' do