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
280ac894
Commit
280ac894
authored
Jun 06, 2019
by
Krasimir Angelov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformat ProjectCiCdSetting validations specs
parent
52673a91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
spec/models/project_ci_cd_setting_spec.rb
spec/models/project_ci_cd_setting_spec.rb
+7
-1
No files found.
spec/models/project_ci_cd_setting_spec.rb
View file @
280ac894
...
...
@@ -23,7 +23,13 @@ describe ProjectCiCdSetting do
end
describe
'validations'
do
it
{
is_expected
.
to
validate_numericality_of
(
:default_git_depth
).
only_integer
.
is_greater_than_or_equal_to
(
0
).
is_less_than_or_equal_to
(
1000
).
allow_nil
}
it
'validates default_git_depth is between 0 and 1000 or nil'
do
expect
(
subject
).
to
validate_numericality_of
(
:default_git_depth
)
.
only_integer
.
is_greater_than_or_equal_to
(
0
)
.
is_less_than_or_equal_to
(
1000
)
.
allow_nil
end
end
describe
'#default_git_depth'
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