This commit is contained in:
Shinya Maeda 2017-12-20 21:12:34 +09:00
parent f3f606966d
commit c519e4a728

View file

@ -14,7 +14,7 @@ describe Gitlab::Regex do
it { is_expected.not_to match('?gitlab') } it { is_expected.not_to match('?gitlab') }
end end
describe '.environment_slug_regex' do describe '.environment_name_regex' do
subject { described_class.environment_name_regex } subject { described_class.environment_name_regex }
it { is_expected.to match('foo') } it { is_expected.to match('foo') }
@ -24,6 +24,7 @@ describe Gitlab::Regex do
it { is_expected.to match('foo.1') } it { is_expected.to match('foo.1') }
it { is_expected.not_to match('9&foo') } it { is_expected.not_to match('9&foo') }
it { is_expected.not_to match('foo-^') } it { is_expected.not_to match('foo-^') }
it { is_expected.not_to match('!!()()') }
end end
describe '.environment_slug_regex' do describe '.environment_slug_regex' do