diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-06-14 14:18:25 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-14 14:18:25 +0300 |
commit | 5cf5680f9c8ce251570efce7dd4c348fb68efccf (patch) | |
tree | 511e1b3da7b9426dd4b09ca1cdd2ba01d5b419b4 /spec/models/remote_mirror_spec.rb | |
parent | 434efdacd66e974a93cb2e94eee725a4a4d16f9f (diff) |
Deny repository disk access in development and test
Diffstat (limited to 'spec/models/remote_mirror_spec.rb')
-rw-r--r-- | spec/models/remote_mirror_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/models/remote_mirror_spec.rb b/spec/models/remote_mirror_spec.rb index 4c086eeadfc..3597b080021 100644 --- a/spec/models/remote_mirror_spec.rb +++ b/spec/models/remote_mirror_spec.rb @@ -74,7 +74,9 @@ describe RemoteMirror do mirror.update_attribute(:url, 'http://foo:baz@test.com') - config = repo.raw_repository.rugged.config + config = Gitlab::GitalyClient::StorageSettings.allow_disk_access do + repo.raw_repository.rugged.config + end expect(config["remote.#{mirror.remote_name}.url"]).to eq('http://foo:baz@test.com') end |