BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0e1c67d1
Commit
0e1c67d1
authored
Mar 15, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rs-ci-build-spec-warnings' into 'master'
Remove RSpec warnings from `spec/models/ci/build_spec.rb` See merge request gitlab-org/gitlab-ce!17755
parents
bd551053
4b039e5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
build_spec.rb
spec/models/ci/build_spec.rb
+9
-9
No files found.
spec/models/ci/build_spec.rb
View file @
0e1c67d1
...
...
@@ -679,21 +679,21 @@ describe Ci::Build do
describe
'#erase'
do
before
do
build
.
erase
(
erased_by:
user
)
build
.
erase
(
erased_by:
erased_by
)
end
context
'erased by user'
do
let!
(
:
user
)
{
create
(
:user
,
username:
'eraser'
)
}
let!
(
:
erased_by
)
{
create
(
:user
,
username:
'eraser'
)
}
include_examples
'erasable'
it
'records user who erased a build'
do
expect
(
build
.
erased_by
).
to
eq
user
expect
(
build
.
erased_by
).
to
eq
erased_by
end
end
context
'erased by system'
do
let
(
:
user
)
{
nil
}
let
(
:
erased_by
)
{
nil
}
include_examples
'erasable'
...
...
@@ -748,21 +748,21 @@ describe Ci::Build do
describe
'#erase'
do
before
do
build
.
erase
(
erased_by:
user
)
build
.
erase
(
erased_by:
erased_by
)
end
context
'erased by user'
do
let!
(
:
user
)
{
create
(
:user
,
username:
'eraser'
)
}
let!
(
:
erased_by
)
{
create
(
:user
,
username:
'eraser'
)
}
include_examples
'erasable'
it
'records user who erased a build'
do
expect
(
build
.
erased_by
).
to
eq
user
expect
(
build
.
erased_by
).
to
eq
erased_by
end
end
context
'erased by system'
do
let
(
:
user
)
{
nil
}
let
(
:
erased_by
)
{
nil
}
include_examples
'erasable'
...
...
@@ -1958,7 +1958,7 @@ describe Ci::Build do
context
'when depended job has not been completed yet'
do
let!
(
:pre_stage_job
)
{
create
(
:ci_build
,
:manual
,
pipeline:
pipeline
,
name:
'test'
,
stage_idx:
0
)
}
it
{
expect
{
job
.
run!
}.
not_to
raise_error
(
Ci
::
Build
::
MissingDependenciesError
)
}
it
{
expect
{
job
.
run!
}.
not_to
raise_error
}
end
context
'when artifacts of depended job has been expired'
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