diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 17:32:34 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 18:48:14 +0300 |
commit | 7bd5e571256aff6de132b118f04224e56abf3228 (patch) | |
tree | 4ec27daa73e2588299b73686ee8954ac299915b1 /spec/lib/gitlab/ci/status/build/stop_spec.rb | |
parent | 1ed6d1541c7973c08cdd4c1906ddcc0c3db893e3 (diff) |
Instead of adding master, stub_not_protect_default_branch
Diffstat (limited to 'spec/lib/gitlab/ci/status/build/stop_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/status/build/stop_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/ci/status/build/stop_spec.rb b/spec/lib/gitlab/ci/status/build/stop_spec.rb index 7fe3cf7ea6d..e0425103f41 100644 --- a/spec/lib/gitlab/ci/status/build/stop_spec.rb +++ b/spec/lib/gitlab/ci/status/build/stop_spec.rb @@ -20,7 +20,9 @@ describe Gitlab::Ci::Status::Build::Stop do describe '#has_action?' do context 'when user is allowed to update build' do before do - build.project.add_master(user) + stub_not_protect_default_branch + + build.project.add_developer(user) end it { is_expected.to have_action } |