summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/regex_spec.rb
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2015-02-09 00:01:31 +0100
committerJakub Jirutka <jakub@jirutka.cz>2015-04-27 16:38:47 +0200
commita1c01bc19bb48e921566304305ef3cfba02e671b (patch)
tree2f103b8bcec585430988ba07af99af450611dffa /spec/lib/gitlab/regex_spec.rb
parentbb8c1cadf39415d2f916d135e8bbfdce49842f2f (diff)
downloadgitlab-ce-a1c01bc19bb48e921566304305ef3cfba02e671b.tar.gz
Fix (project_)name_regex to accept non-ASCII letters and dash
Diffstat (limited to 'spec/lib/gitlab/regex_spec.rb')
-rw-r--r--spec/lib/gitlab/regex_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/lib/gitlab/regex_spec.rb b/spec/lib/gitlab/regex_spec.rb
index 727884c41c5..7fdc8fa600d 100644
--- a/spec/lib/gitlab/regex_spec.rb
+++ b/spec/lib/gitlab/regex_spec.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
require 'spec_helper'
describe Gitlab::Regex do
@@ -16,6 +17,8 @@ describe Gitlab::Regex do
it { expect('GitLab CE').to match(Gitlab::Regex.project_name_regex) }
it { expect('100 lines').to match(Gitlab::Regex.project_name_regex) }
it { expect('gitlab.git').to match(Gitlab::Regex.project_name_regex) }
+ it { expect('Český název').to match(Gitlab::Regex.project_name_regex) }
+ it { expect('Dash – is this').to match(Gitlab::Regex.project_name_regex) }
it { expect('?gitlab').not_to match(Gitlab::Regex.project_name_regex) }
end
end