Commit 53cad500 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add missing tests for pipeline chain access validator

parent 6a9cfdde
...@@ -32,6 +32,19 @@ describe Gitlab::Ci::Pipeline::Chain::Validate::Abilities do ...@@ -32,6 +32,19 @@ describe Gitlab::Ci::Pipeline::Chain::Validate::Abilities do
end end
context 'when user has ability to create a pipeline' do context 'when user has ability to create a pipeline' do
before do
project.add_developer(user)
step.perform!
end
it 'does not invalidate the pipeline' do
expect(pipeline).to be_valid
end
it 'does not break the chain' do
expect(step.break?).to eq false
end
end end
describe '#allowed_to_create?' do describe '#allowed_to_create?' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment