diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-09-12 13:26:59 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-10-05 15:11:32 +0300 |
commit | 4656283c5cd10116d79812db24c37ff79b0e0273 (patch) | |
tree | bc66bc0e89178eb36c2d6bbcf80c2f0c4fb6170e /spec/models/project_spec.rb | |
parent | 905d3ed4292e6b274ac51b26b3b3577087c5f737 (diff) |
Gitaly namespace service enabled for GitLab
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 176bb568cbe..3d6a79e0649 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -421,20 +421,10 @@ describe Project do end describe '#repository_storage_path' do - let(:project) { create(:project, repository_storage: 'custom') } - - before do - FileUtils.mkdir('tmp/tests/custom_repositories') - storages = { 'custom' => { 'path' => 'tmp/tests/custom_repositories' } } - allow(Gitlab.config.repositories).to receive(:storages).and_return(storages) - end - - after do - FileUtils.rm_rf('tmp/tests/custom_repositories') - end + let(:project) { create(:project) } it 'returns the repository storage path' do - expect(project.repository_storage_path).to eq('tmp/tests/custom_repositories') + expect(Dir.exist?(project.repository_storage_path)).to be(true) end end |