Fix deploy chat command specs for protected actions

This commit is contained in:
Grzegorz Bizon 2017-05-31 11:09:29 +02:00
parent 20047e72d8
commit 1984359de3

View file

@ -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