Commit f8eb8fea authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix pipeline processing specs related to protected actions

parent 0f52544b
...@@ -333,10 +333,11 @@ describe Ci::ProcessPipelineService, '#execute', :services do ...@@ -333,10 +333,11 @@ describe Ci::ProcessPipelineService, '#execute', :services do
context 'when pipeline is promoted sequentially up to the end' do context 'when pipeline is promoted sequentially up to the end' do
before do before do
# We are using create(:empty_project), and users has to be master in # Users need ability to merge into a branch in order to trigger
# order to execute manual action when repository does not exist. # protected manual actions.
# #
project.add_master(user) create(:protected_branch, :developers_can_merge,
name: 'master', project: project)
end end
it 'properly processes entire pipeline' do it 'properly processes entire pipeline' 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