diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 11:25:55 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 11:25:55 +0200 |
commit | 37694858223f217c90cbdb794b85b59ece69b284 (patch) | |
tree | 1f6b346570279f50e89169690e34210638c4fc70 | |
parent | 9a6b4c80892750c60933082def7ad958f61f46df (diff) | |
download | gitlab-ce-37694858223f217c90cbdb794b85b59ece69b284.tar.gz |
Fix chat commands specs related to protected actions
-rw-r--r-- | spec/lib/gitlab/chat_commands/command_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/lib/gitlab/chat_commands/command_spec.rb b/spec/lib/gitlab/chat_commands/command_spec.rb index eb4f06b371c..13e6953147b 100644 --- a/spec/lib/gitlab/chat_commands/command_spec.rb +++ b/spec/lib/gitlab/chat_commands/command_spec.rb @@ -58,9 +58,12 @@ describe Gitlab::ChatCommands::Command, service: true do end end - context 'and user does have deployment permission' do + context 'and user has deployment permission' do before do - build.project.add_master(user) + build.project.add_developer(user) + + create(:protected_branch, :developers_can_merge, + name: build.ref, project: project) end it 'returns action' do |