Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-31 12:18:15 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-31 12:18:15 +0300
commite3cb71442e96921ae67a443a62d8f27f6df02216 (patch)
treef50ea60a805931b40769744569356b2914610d14 /spec
parentc970702517558ee6c1ba454572a20ee57fadf285 (diff)
Fix build factory specs related to protected actions
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/ci/status/build/factory_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/lib/gitlab/ci/status/build/factory_spec.rb b/spec/lib/gitlab/ci/status/build/factory_spec.rb
index 185bb9098da..3f30b2c38f2 100644
--- a/spec/lib/gitlab/ci/status/build/factory_spec.rb
+++ b/spec/lib/gitlab/ci/status/build/factory_spec.rb
@@ -224,7 +224,10 @@ describe Gitlab::Ci::Status::Build::Factory do
context 'when user has ability to play action' do
before do
- build.project.add_master(user)
+ project.add_developer(user)
+
+ create(:protected_branch, :developers_can_merge,
+ name: build.ref, project: project)
end
it 'fabricates status that has action' do