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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
9b912362
Commit
9b912362
authored
Aug 15, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec not_to syntax for package models
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
af4a4ef0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ee/spec/models/packages/maven_metadatum_spec.rb
ee/spec/models/packages/maven_metadatum_spec.rb
+5
-5
ee/spec/models/packages/package_spec.rb
ee/spec/models/packages/package_spec.rb
+1
-1
No files found.
ee/spec/models/packages/maven_metadatum_spec.rb
View file @
9b912362
...
...
@@ -11,20 +11,20 @@ RSpec.describe Packages::MavenMetadatum, type: :model do
describe
'#app_name'
do
it
{
is_expected
.
to
allow_value
(
"my-app"
).
for
(
:app_name
)
}
it
{
is_expected
.
to_not
allow_value
(
"my/app"
).
for
(
:app_name
)
}
it
{
is_expected
.
to_not
allow_value
(
"my(app)"
).
for
(
:app_name
)
}
it
{
is_expected
.
not_to
allow_value
(
"my/app"
).
for
(
:app_name
)
}
it
{
is_expected
.
not_to
allow_value
(
"my(app)"
).
for
(
:app_name
)
}
end
describe
'#app_group'
do
it
{
is_expected
.
to
allow_value
(
"my.domain.com"
).
for
(
:app_group
)
}
it
{
is_expected
.
to_not
allow_value
(
"my/domain/com"
).
for
(
:app_group
)
}
it
{
is_expected
.
to_not
allow_value
(
"my(domain)"
).
for
(
:app_group
)
}
it
{
is_expected
.
not_to
allow_value
(
"my/domain/com"
).
for
(
:app_group
)
}
it
{
is_expected
.
not_to
allow_value
(
"my(domain)"
).
for
(
:app_group
)
}
end
describe
'#path'
do
it
{
is_expected
.
to
allow_value
(
"my/domain/com/my-app"
).
for
(
:path
)
}
it
{
is_expected
.
to
allow_value
(
"my/domain/com/my-app/1.0-SNAPSHOT"
).
for
(
:path
)
}
it
{
is_expected
.
to_not
allow_value
(
"my(domain)com.my-app"
).
for
(
:path
)
}
it
{
is_expected
.
not_to
allow_value
(
"my(domain)com.my-app"
).
for
(
:path
)
}
end
end
end
ee/spec/models/packages/package_spec.rb
View file @
9b912362
...
...
@@ -13,7 +13,7 @@ RSpec.describe Packages::Package, type: :model do
describe
'#name'
do
it
{
is_expected
.
to
allow_value
(
"my/domain/com/my-app"
).
for
(
:name
)
}
it
{
is_expected
.
to
allow_value
(
"my.app-11.07.2018"
).
for
(
:name
)
}
it
{
is_expected
.
to_not
allow_value
(
"my(dom$$$ain)com.my-app"
).
for
(
:name
)
}
it
{
is_expected
.
not_to
allow_value
(
"my(dom$$$ain)com.my-app"
).
for
(
:name
)
}
end
end
end
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