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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
3a8b9aad
Commit
3a8b9aad
authored
Jan 14, 2019
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor pipeline specs and remove raise_error warning
parent
5d85a049
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/lib/gitlab/ci/pipeline/chain/populate_spec.rb
spec/lib/gitlab/ci/pipeline/chain/populate_spec.rb
+5
-5
No files found.
spec/lib/gitlab/ci/pipeline/chain/populate_spec.rb
View file @
3a8b9aad
...
...
@@ -163,14 +163,14 @@ describe Gitlab::Ci::Pipeline::Chain::Populate do
->
(
pipeline
)
{
pipeline
.
variables
.
create!
(
key:
'VAR'
,
value:
'123'
)
}
end
it
'
raises exception
'
do
it
'
wastes pipeline iid
'
do
expect
{
step
.
perform!
}.
to
raise_error
(
ActiveRecord
::
RecordNotSaved
)
end
it
'wastes pipeline iid'
do
expect
{
step
.
perform!
}.
to
raise_error
last_iid
=
InternalId
.
ci_pipelines
.
where
(
project_id:
project
.
id
)
.
last
.
last_value
expect
(
InternalId
.
ci_pipelines
.
where
(
project_id:
project
.
id
).
last
.
last_value
).
to
be
>
0
expect
(
last_iid
).
to
be
>
0
end
end
end
...
...
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