diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 11:09:29 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 11:09:29 +0200 |
commit | 1984359de3371b5f0c8ddbfad757a32d3013c252 (patch) | |
tree | a6f8e183cebb4a92a4faee6fd6c619b492f8d69e /spec | |
parent | 20047e72d814e1d5fd744a0eda843019eb4e0b3f (diff) | |
download | gitlab-ce-1984359de3371b5f0c8ddbfad757a32d3013c252.tar.gz |
Fix deploy chat command specs for protected actions
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/chat_commands/deploy_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/lib/gitlab/chat_commands/deploy_spec.rb b/spec/lib/gitlab/chat_commands/deploy_spec.rb index b33389d959e..46dbdeae37c 100644 --- a/spec/lib/gitlab/chat_commands/deploy_spec.rb +++ b/spec/lib/gitlab/chat_commands/deploy_spec.rb @@ -7,7 +7,12 @@ describe Gitlab::ChatCommands::Deploy, service: true do let(:regex_match) { described_class.match('deploy staging to production') } before do - project.add_master(user) + # Make it possible to trigger protected manual actions for developers. + # + project.add_developer(user) + + create(:protected_branch, :developers_can_merge, + name: 'master', project: project) end subject do |