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
82040e77
Commit
82040e77
authored
Jul 24, 2019
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing spec to destroy_pipeline_service_spec
parent
b95e7c22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
spec/services/ci/destroy_pipeline_service_spec.rb
spec/services/ci/destroy_pipeline_service_spec.rb
+15
-0
No files found.
spec/services/ci/destroy_pipeline_service_spec.rb
View file @
82040e77
...
...
@@ -17,6 +17,21 @@ describe ::Ci::DestroyPipelineService do
expect
{
pipeline
.
reload
}.
to
raise_error
(
ActiveRecord
::
RecordNotFound
)
end
it
'clears the cache'
,
:use_clean_rails_memory_store_caching
do
create
(
:commit_status
,
:success
,
pipeline:
pipeline
,
ref:
pipeline
.
ref
)
expect
(
project
.
pipeline_status
.
has_status?
).
to
be_truthy
subject
# Need to use find to avoid memoization
expect
(
Project
.
find
(
project
.
id
).
pipeline_status
.
has_status?
).
to
be_falsey
end
it
'does not log an audit event'
do
expect
{
subject
}.
not_to
change
{
SecurityEvent
.
count
}
end
context
'when the pipeline has jobs'
do
let!
(
:build
)
{
create
(
:ci_build
,
project:
project
,
pipeline:
pipeline
)
}
...
...
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