diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 11:18:15 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 11:18:15 +0200 |
commit | e3cb71442e96921ae67a443a62d8f27f6df02216 (patch) | |
tree | f50ea60a805931b40769744569356b2914610d14 /spec | |
parent | c970702517558ee6c1ba454572a20ee57fadf285 (diff) | |
download | gitlab-ce-e3cb71442e96921ae67a443a62d8f27f6df02216.tar.gz |
Fix build factory specs related to protected actions
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/ci/status/build/factory_spec.rb | 5 |
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 |