diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-06-14 11:18:25 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-14 11:18:25 +0000 |
commit | 5cf5680f9c8ce251570efce7dd4c348fb68efccf (patch) | |
tree | 511e1b3da7b9426dd4b09ca1cdd2ba01d5b419b4 /spec/helpers | |
parent | 434efdacd66e974a93cb2e94eee725a4a4d16f9f (diff) | |
download | gitlab-ce-5cf5680f9c8ce251570efce7dd4c348fb68efccf.tar.gz |
Deny repository disk access in development and test
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/projects_helper_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb index 815b4035114..5cf9e9e8f12 100644 --- a/spec/helpers/projects_helper_spec.rb +++ b/spec/helpers/projects_helper_spec.rb @@ -280,7 +280,11 @@ describe ProjectsHelper do describe '#sanitizerepo_repo_path' do let(:project) { create(:project, :repository) } - let(:storage_path) { Gitlab.config.repositories.storages.default.legacy_disk_path } + let(:storage_path) do + Gitlab::GitalyClient::StorageSettings.allow_disk_access do + Gitlab.config.repositories.storages.default.legacy_disk_path + end + end before do allow(Settings.shared).to receive(:[]).with('path').and_return('/base/repo/export/path') |