Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
7306c8ceffee
Commit
690be139
authored
Jan 14, 2019
by
Grzegorz Bizon
Browse files
Refactor pipeline specs and remove raise_error warning
parent
d475eb7d655a
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/lib/gitlab/ci/pipeline/chain/populate_spec.rb
View file @
7306c8ce
...
...
@@ -163,14 +163,14 @@
->
(
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