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:09:29 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-31 12:09:29 +0300
commit1984359de3371b5f0c8ddbfad757a32d3013c252 (patch)
treea6f8e183cebb4a92a4faee6fd6c619b492f8d69e /spec
parent20047e72d814e1d5fd744a0eda843019eb4e0b3f (diff)
Fix deploy chat command specs for protected actions
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/chat_commands/deploy_spec.rb7
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