diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-04-25 13:55:21 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-04-25 13:55:21 +0000 |
commit | 6587d3680e2c1f47c080636bdbbda59bdc8ba4d8 (patch) | |
tree | 6a8b00f4be97bd9fb13d96b98a7e073adca8c8eb /spec/helpers | |
parent | 5beb4ddebfa23b288dc088c7175c2456d411f4f1 (diff) | |
parent | ec4423665cacfe2f0675fb8b9b5bd8dd17a77dd7 (diff) | |
download | gitlab-ce-6587d3680e2c1f47c080636bdbbda59bdc8ba4d8.tar.gz |
Merge branch 'zj-storage-path-deprecation' into 'master'
Legacy disk path refactor
Closes gitaly#1111
See merge request gitlab-org/gitlab-ce!18364
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/projects_helper_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb index 46c55da24f8..8fcb175416f 100644 --- a/spec/helpers/projects_helper_spec.rb +++ b/spec/helpers/projects_helper_spec.rb @@ -274,16 +274,16 @@ describe ProjectsHelper do end end - describe '#sanitized_import_error' do + describe '#sanitizerepo_repo_path' do let(:project) { create(:project, :repository) } + let(:storage_path) { Gitlab.config.repositories.storages.default.legacy_disk_path } before do - allow(project).to receive(:repository_storage_path).and_return('/base/repo/path') allow(Settings.shared).to receive(:[]).with('path').and_return('/base/repo/export/path') end it 'removes the repo path' do - repo = '/base/repo/path/namespace/test.git' + repo = "#{storage_path}/namespace/test.git" import_error = "Could not clone #{repo}\n" expect(sanitize_repo_path(project, import_error)).to eq('Could not clone [REPOS PATH]/namespace/test.git') |