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
4d3ce59d
Commit
4d3ce59d
authored
Jul 12, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails 5 fix the matcher expected the ApplicationSetting to be invalid, but it was valid instead
parent
6c31f38c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
ee/changelogs/unreleased/rails5-fix-6748.yml
ee/changelogs/unreleased/rails5-fix-6748.yml
+6
-0
ee/spec/models/application_setting_spec.rb
ee/spec/models/application_setting_spec.rb
+3
-3
No files found.
ee/changelogs/unreleased/rails5-fix-6748.yml
0 → 100644
View file @
4d3ce59d
---
title
:
Rails 5 fix the matcher expected the ApplicationSetting to be invalid, but
it was valid instead
merge_request
:
6488
author
:
Jasper Maes
type
:
fixed
ee/spec/models/application_setting_spec.rb
View file @
4d3ce59d
...
...
@@ -7,20 +7,20 @@ describe ApplicationSetting do
it
{
is_expected
.
to
allow_value
(
100
).
for
(
:mirror_max_delay
)
}
it
{
is_expected
.
not_to
allow_value
(
nil
).
for
(
:mirror_max_delay
)
}
it
{
is_expected
.
not_to
allow_value
(
0
).
for
(
:mirror_max_delay
)
}
it
{
is_expected
.
not_to
allow_value
(
1.
0
).
for
(
:mirror_max_delay
)
}
it
{
is_expected
.
not_to
allow_value
(
1.
1
).
for
(
:mirror_max_delay
)
}
it
{
is_expected
.
not_to
allow_value
(
-
1
).
for
(
:mirror_max_delay
)
}
it
{
is_expected
.
not_to
allow_value
((
Gitlab
::
Mirror
::
MIN_DELAY
-
1
.
minute
)
/
60
).
for
(
:mirror_max_delay
)
}
it
{
is_expected
.
to
allow_value
(
10
).
for
(
:mirror_max_capacity
)
}
it
{
is_expected
.
not_to
allow_value
(
nil
).
for
(
:mirror_max_capacity
)
}
it
{
is_expected
.
not_to
allow_value
(
0
).
for
(
:mirror_max_capacity
)
}
it
{
is_expected
.
not_to
allow_value
(
1.
0
).
for
(
:mirror_max_capacity
)
}
it
{
is_expected
.
not_to
allow_value
(
1.
1
).
for
(
:mirror_max_capacity
)
}
it
{
is_expected
.
not_to
allow_value
(
-
1
).
for
(
:mirror_max_capacity
)
}
it
{
is_expected
.
to
allow_value
(
10
).
for
(
:mirror_capacity_threshold
)
}
it
{
is_expected
.
not_to
allow_value
(
nil
).
for
(
:mirror_capacity_threshold
)
}
it
{
is_expected
.
not_to
allow_value
(
0
).
for
(
:mirror_capacity_threshold
)
}
it
{
is_expected
.
not_to
allow_value
(
1.
0
).
for
(
:mirror_capacity_threshold
)
}
it
{
is_expected
.
not_to
allow_value
(
1.
1
).
for
(
:mirror_capacity_threshold
)
}
it
{
is_expected
.
not_to
allow_value
(
-
1
).
for
(
:mirror_capacity_threshold
)
}
it
{
is_expected
.
not_to
allow_value
(
subject
.
mirror_max_capacity
+
1
).
for
(
:mirror_capacity_threshold
)
}
...
...
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