Add spec
This commit is contained in:
parent
f3f606966d
commit
c519e4a728
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ describe Gitlab::Regex do
|
|||
it { is_expected.not_to match('?gitlab') }
|
||||
end
|
||||
|
||||
describe '.environment_slug_regex' do
|
||||
describe '.environment_name_regex' do
|
||||
subject { described_class.environment_name_regex }
|
||||
|
||||
it { is_expected.to match('foo') }
|
||||
|
@ -24,6 +24,7 @@ describe Gitlab::Regex do
|
|||
it { is_expected.to match('foo.1') }
|
||||
it { is_expected.not_to match('9&foo') }
|
||||
it { is_expected.not_to match('foo-^') }
|
||||
it { is_expected.not_to match('!!()()') }
|
||||
end
|
||||
|
||||
describe '.environment_slug_regex' do
|
||||
|
|
Loading…
Reference in a new issue