This commit is contained in:
Shinya Maeda 2017-12-20 21:12:34 +09:00
parent f3f606966d
commit c519e4a728
1 changed files with 2 additions and 1 deletions

View File

@ -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