Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
c519e4a7
Commit
c519e4a7
authored
Dec 20, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec
parent
f3f60696
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/lib/gitlab/regex_spec.rb
spec/lib/gitlab/regex_spec.rb
+2
-1
No files found.
spec/lib/gitlab/regex_spec.rb
View file @
c519e4a7
...
@@ -14,7 +14,7 @@ describe Gitlab::Regex do
...
@@ -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
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment