Commit 1ce2c4dc authored by Seiji Suenaga's avatar Seiji Suenaga

Add missing test for Microsoft Teams notify_only_default_branch flag

parent f7658c0f
...@@ -289,6 +289,18 @@ describe MicrosoftTeamsService do ...@@ -289,6 +289,18 @@ describe MicrosoftTeamsService do
expect(result).to be_falsy expect(result).to be_falsy
end end
end end
context 'when disabled' do
let(:pipeline) do
create(:ci_pipeline, :failed, project: project, ref: 'not-the-default-branch')
end
before do
chat_service.notify_only_default_branch = false
end
it_behaves_like 'call Microsoft Teams API'
end
end end
end end
end end
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