Commit 753a9a87 authored by Andy Soiron's avatar Andy Soiron Committed by Sven Groot

Apply 1 suggestion(s) to 1 file(s)

parent 8936d625
......@@ -670,8 +670,7 @@ RSpec.shared_examples Integrations::SlackMattermostNotifier do |service_name|
context 'on a protected branch' do
before do
create(:protected_branch, project: project, name: 'a-protected-branch')
project.repository.create_branch('a-protected-branch', project.default_branch_or_main)
create(:protected_branch, :create_branch_on_repository, project: project, name: 'a-protected-branch')
end
let(:deployment) 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