Skip to content
Snippets Groups Projects
Commit c519e4a7 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Add spec

parent f3f60696
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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') }
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment