Commit e3cb7144 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix build factory specs related to protected actions

parent c9707025
...@@ -224,7 +224,10 @@ describe Gitlab::Ci::Status::Build::Factory do ...@@ -224,7 +224,10 @@ describe Gitlab::Ci::Status::Build::Factory do
context 'when user has ability to play action' do context 'when user has ability to play action' do
before do before do
build.project.add_master(user) project.add_developer(user)
create(:protected_branch, :developers_can_merge,
name: build.ref, project: project)
end end
it 'fabricates status that has action' do it 'fabricates status that has action' 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