diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 11:24:17 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 11:24:17 +0200 |
commit | 9a6b4c80892750c60933082def7ad958f61f46df (patch) | |
tree | b36aa76cab7ee94943172d07d67394b56a2741b5 | |
parent | c9b653b4a0981647270c70122b01bfa6744c451b (diff) | |
download | gitlab-ce-9a6b4c80892750c60933082def7ad958f61f46df.tar.gz |
Fix builds controller specs related to protected actions
-rw-r--r-- | spec/controllers/projects/builds_controller_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/controllers/projects/builds_controller_spec.rb b/spec/controllers/projects/builds_controller_spec.rb index f41503fd34e..932276ce380 100644 --- a/spec/controllers/projects/builds_controller_spec.rb +++ b/spec/controllers/projects/builds_controller_spec.rb @@ -234,7 +234,11 @@ describe Projects::BuildsController do describe 'POST play' do before do - project.add_master(user) + project.add_developer(user) + + create(:protected_branch, :developers_can_merge, + name: 'master', project: project) + sign_in(user) post_play |