Skip to content
Snippets Groups Projects
Commit 1ce2c4dc authored by Seiji Suenaga's avatar Seiji Suenaga
Browse files

Add missing test for Microsoft Teams notify_only_default_branch flag

parent f7658c0f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -289,6 +289,18 @@ describe MicrosoftTeamsService do
expect(result).to be_falsy
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment