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
e2e01949
Commit
e2e01949
authored
Apr 07, 2022
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo
parent
9269c695
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/models/ci/runner_spec.rb
spec/models/ci/runner_spec.rb
+4
-4
No files found.
spec/models/ci/runner_spec.rb
View file @
e2e01949
...
...
@@ -134,28 +134,28 @@ RSpec.describe Ci::Runner do
end
context
'cost factors validations'
do
it
'dis
sa
lows :private_projects_minutes_cost_factor being nil'
do
it
'dis
al
lows :private_projects_minutes_cost_factor being nil'
do
runner
=
build
(
:ci_runner
,
private_projects_minutes_cost_factor:
nil
)
expect
(
runner
).
to
be_invalid
expect
(
runner
.
errors
.
full_messages
).
to
include
(
'Private projects minutes cost factor needs to be non-negative'
)
end
it
'dis
sa
lows :public_projects_minutes_cost_factor being nil'
do
it
'dis
al
lows :public_projects_minutes_cost_factor being nil'
do
runner
=
build
(
:ci_runner
,
public_projects_minutes_cost_factor:
nil
)
expect
(
runner
).
to
be_invalid
expect
(
runner
.
errors
.
full_messages
).
to
include
(
'Public projects minutes cost factor needs to be non-negative'
)
end
it
'dis
sa
lows :private_projects_minutes_cost_factor being negative'
do
it
'dis
al
lows :private_projects_minutes_cost_factor being negative'
do
runner
=
build
(
:ci_runner
,
private_projects_minutes_cost_factor:
-
1.1
)
expect
(
runner
).
to
be_invalid
expect
(
runner
.
errors
.
full_messages
).
to
include
(
'Private projects minutes cost factor needs to be non-negative'
)
end
it
'dis
sa
lows :public_projects_minutes_cost_factor being negative'
do
it
'dis
al
lows :public_projects_minutes_cost_factor being negative'
do
runner
=
build
(
:ci_runner
,
public_projects_minutes_cost_factor:
-
2.2
)
expect
(
runner
).
to
be_invalid
...
...
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