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
fe25f955
Commit
fe25f955
authored
Jan 06, 2021
by
Mayra Cabrera
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lucyfox-master-patch-83396' into 'master'
changed it to specify See merge request gitlab-org/gitlab!51004
parents
f8759919
df5bd6f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/models/application_setting_spec.rb
spec/models/application_setting_spec.rb
+5
-5
No files found.
spec/models/application_setting_spec.rb
View file @
fe25f955
...
...
@@ -313,7 +313,7 @@ RSpec.describe ApplicationSetting do
it
{
is_expected
.
to
validate_presence_of
(
:max_attachment_size
)
}
it
do
specify
do
is_expected
.
to
validate_numericality_of
(
:max_attachment_size
)
.
only_integer
.
is_greater_than
(
0
)
...
...
@@ -321,13 +321,13 @@ RSpec.describe ApplicationSetting do
it
{
is_expected
.
to
validate_presence_of
(
:max_import_size
)
}
it
do
specify
do
is_expected
.
to
validate_numericality_of
(
:max_import_size
)
.
only_integer
.
is_greater_than_or_equal_to
(
0
)
end
it
do
specify
do
is_expected
.
to
validate_numericality_of
(
:local_markdown_version
)
.
only_integer
.
is_greater_than_or_equal_to
(
0
)
...
...
@@ -472,7 +472,7 @@ RSpec.describe ApplicationSetting do
end
[
:gitaly_timeout_default
,
:gitaly_timeout_medium
,
:gitaly_timeout_fast
].
each
do
|
timeout_name
|
it
do
specify
do
is_expected
.
to
validate_presence_of
(
timeout_name
)
is_expected
.
to
validate_numericality_of
(
timeout_name
).
only_integer
.
is_greater_than_or_equal_to
(
0
)
...
...
@@ -821,7 +821,7 @@ RSpec.describe ApplicationSetting do
context
'validations'
do
it
{
is_expected
.
to
validate_presence_of
(
:diff_max_patch_bytes
)
}
it
do
specify
do
is_expected
.
to
validate_numericality_of
(
:diff_max_patch_bytes
)
.
only_integer
.
is_greater_than_or_equal_to
(
Gitlab
::
Git
::
Diff
::
DEFAULT_MAX_PATCH_BYTES
)
...
...
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