summaryrefslogtreecommitdiff
path: root/spec/helpers
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-01-30 10:35:50 +0000
committerRémy Coutable <remy@rymai.me>2019-01-30 10:35:50 +0000
commit95e220de3ad1aff2a60a543c1842d838d9bfac26 (patch)
treebb4625bdd4db687c18f2d83fcbac24d382f8f551 /spec/helpers
parent08c80098eeeee40b0487bc198d8bb08768da866a (diff)
parenteafccaad7346d6e1f8d13024bb5295bc683ab046 (diff)
downloadgitlab-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.rb4
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