diff options
author | Rémy Coutable <remy@rymai.me> | 2019-01-30 10:35:50 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-01-30 10:35:50 +0000 |
commit | 95e220de3ad1aff2a60a543c1842d838d9bfac26 (patch) | |
tree | bb4625bdd4db687c18f2d83fcbac24d382f8f551 /spec/helpers | |
parent | 08c80098eeeee40b0487bc198d8bb08768da866a (diff) | |
parent | eafccaad7346d6e1f8d13024bb5295bc683ab046 (diff) | |
download | gitlab-ce-95e220de3ad1aff2a60a543c1842d838d9bfac26.tar.gz |
Merge branch 'sh-issue-53419-fix' into 'master'
Fix Bitbucket Server import not allowing personal projects
Closes #53419
See merge request gitlab-org/gitlab-ce!23601
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/import_helper_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/helpers/import_helper_spec.rb b/spec/helpers/import_helper_spec.rb index cb0ea4e26ba..af4931e3370 100644 --- a/spec/helpers/import_helper_spec.rb +++ b/spec/helpers/import_helper_spec.rb @@ -2,6 +2,10 @@ require 'rails_helper' describe ImportHelper do describe '#sanitize_project_name' do + it 'removes leading tildes' do + expect(helper.sanitize_project_name('~~root')).to eq('root') + end + it 'removes whitespace' do expect(helper.sanitize_project_name('my test repo')).to eq('my-test-repo') end |