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/models/project_wiki_spec.rb | |
parent | 434efdacd66e974a93cb2e94eee725a4a4d16f9f (diff) | |
download | gitlab-ce-5cf5680f9c8ce251570efce7dd4c348fb68efccf.tar.gz |
Deny repository disk access in development and test
Diffstat (limited to 'spec/models/project_wiki_spec.rb')
-rw-r--r-- | spec/models/project_wiki_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/models/project_wiki_spec.rb b/spec/models/project_wiki_spec.rb index f1142832f1a..a3c20b3b3c1 100644 --- a/spec/models/project_wiki_spec.rb +++ b/spec/models/project_wiki_spec.rb @@ -188,7 +188,11 @@ describe ProjectWiki do before do subject.wiki # Make sure the wiki repo exists - BareRepoOperations.new(subject.repository.path_to_repo).commit_file(image, 'image.png') + repo_path = Gitlab::GitalyClient::StorageSettings.allow_disk_access do + subject.repository.path_to_repo + end + + BareRepoOperations.new(repo_path).commit_file(image, 'image.png') end it 'returns the latest version of the file if it exists' do |