Skip to content
Snippets Groups Projects
Commit c1203ebf authored by Maxim Rydkin's avatar Maxim Rydkin
Browse files

add `does not cancel HEAD pipeline` spec

parent 2537ab39
No related branches found
No related tags found
Loading
......@@ -47,7 +47,13 @@ def previous_commit_sha_from_ref(ref)
project.update(auto_cancel_pending_pipelines: 'enabled')
end
it_behaves_like 'a pending pipeline'
it 'does not cancel HEAD pipeline' do
pipeline
previous_pipeline = pipeline_on_previous_commit
expect(pipeline.reload)
.to have_attributes(status: 'pending', auto_canceled_by: nil)
end
it 'auto cancel pending non-HEAD pipelines' do
pending_pipeline = pipeline_on_previous_commit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment