summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-31 11:24:17 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-31 11:24:17 +0200
commit9a6b4c80892750c60933082def7ad958f61f46df (patch)
treeb36aa76cab7ee94943172d07d67394b56a2741b5
parentc9b653b4a0981647270c70122b01bfa6744c451b (diff)
downloadgitlab-ce-9a6b4c80892750c60933082def7ad958f61f46df.tar.gz
Fix builds controller specs related to protected actions
-rw-r--r--spec/controllers/projects/builds_controller_spec.rb6
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