Commit 37694858 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix chat commands specs related to protected actions

parent 9a6b4c80
...@@ -58,9 +58,12 @@ describe Gitlab::ChatCommands::Command, service: true do ...@@ -58,9 +58,12 @@ describe Gitlab::ChatCommands::Command, service: true do
end end
end end
context 'and user does have deployment permission' do context 'and user has deployment permission' do
before 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 end
it 'returns action' do it 'returns action' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment