diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-05-02 09:13:10 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-02 09:13:41 +0200 |
commit | c853dd6158af0f77721ce59c03f5f05e98eeadba (patch) | |
tree | 20a68ff2c1092d5655c1f472e67a8890804b3761 /spec/lib/gitlab | |
parent | 2e2a63c8669a084ed3a3aa5e770158ea2cb43a9d (diff) | |
download | gitlab-ce-c853dd6158af0f77721ce59c03f5f05e98eeadba.tar.gz |
Reuse Gitlab::Regex.full_namespace_regex in the DynamicPathValidator
Diffstat (limited to 'spec/lib/gitlab')
-rw-r--r-- | spec/lib/gitlab/regex_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/regex_spec.rb b/spec/lib/gitlab/regex_spec.rb index 127cd8c78d8..72e947f2cc2 100644 --- a/spec/lib/gitlab/regex_spec.rb +++ b/spec/lib/gitlab/regex_spec.rb @@ -45,8 +45,8 @@ describe Gitlab::Regex, lib: true do it { is_expected.not_to match('foo-') } end - describe 'FULL_NAMESPACE_REGEX_STR' do - subject { %r{\A#{Gitlab::Regex::FULL_NAMESPACE_REGEX_STR}\z} } + describe '.full_namespace_regex' do + subject { described_class.full_namespace_regex } it { is_expected.to match('gitlab.org') } it { is_expected.to match('gitlab.org/gitlab-git') } |