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
93705f9e
Commit
93705f9e
authored
Sep 17, 2018
by
Markus Doits
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some spec wording and values
parent
39204d8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+5
-5
No files found.
spec/models/ci/build_spec.rb
View file @
93705f9e
...
@@ -1475,7 +1475,7 @@ describe Ci::Build do
...
@@ -1475,7 +1475,7 @@ describe Ci::Build do
context
'when max retries value is defined as an integer'
do
context
'when max retries value is defined as an integer'
do
subject
{
create
(
:ci_build
,
options:
{
retry:
1
})
}
subject
{
create
(
:ci_build
,
options:
{
retry:
1
})
}
it
'returns
a
number of configured max retries'
do
it
'returns
the
number of configured max retries'
do
expect
(
subject
.
retries_max
).
to
eq
1
expect
(
subject
.
retries_max
).
to
eq
1
end
end
end
end
...
@@ -1483,7 +1483,7 @@ describe Ci::Build do
...
@@ -1483,7 +1483,7 @@ describe Ci::Build do
context
'when retries value is defined as a hash'
do
context
'when retries value is defined as a hash'
do
subject
{
create
(
:ci_build
,
options:
{
retry:
{
max:
1
}
})
}
subject
{
create
(
:ci_build
,
options:
{
retry:
{
max:
1
}
})
}
it
'returns
a
number of configured max retries'
do
it
'returns
the
number of configured max retries'
do
expect
(
subject
.
retries_max
).
to
eq
1
expect
(
subject
.
retries_max
).
to
eq
1
end
end
end
end
...
@@ -1491,7 +1491,7 @@ describe Ci::Build do
...
@@ -1491,7 +1491,7 @@ describe Ci::Build do
context
'when retries value is defined as a hash without max key'
do
context
'when retries value is defined as a hash without max key'
do
subject
{
create
(
:ci_build
,
options:
{
retry:
{
something: :else
}
})
}
subject
{
create
(
:ci_build
,
options:
{
retry:
{
something: :else
}
})
}
it
'returns
a number of configured max retries
'
do
it
'returns
zero
'
do
expect
(
subject
.
retries_max
).
to
eq
0
expect
(
subject
.
retries_max
).
to
eq
0
end
end
end
end
...
@@ -1522,7 +1522,7 @@ describe Ci::Build do
...
@@ -1522,7 +1522,7 @@ describe Ci::Build do
end
end
end
end
context
'when value is defined
without
as an array'
do
context
'when value is defined as an array'
do
subject
{
create
(
:ci_build
,
options:
{
retry:
{
when:
%w[something more]
}
})
}
subject
{
create
(
:ci_build
,
options:
{
retry:
{
when:
%w[something more]
}
})
}
it
'returns the configured value'
do
it
'returns the configured value'
do
...
@@ -1579,7 +1579,7 @@ describe Ci::Build do
...
@@ -1579,7 +1579,7 @@ describe Ci::Build do
context
'and retry when is always'
do
context
'and retry when is always'
do
before
do
before
do
expect
(
subject
).
to
receive
(
:retry_when
).
at_least
(
:once
).
and_return
(
'always'
)
expect
(
subject
).
to
receive
(
:retry_when
).
at_least
(
:once
).
and_return
(
[
'always'
]
)
end
end
it
'returns true'
do
it
'returns true'
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