diff options
author | Stan Hu <stanhu@gmail.com> | 2019-06-19 08:43:35 +0300 |
---|---|---|
committer | GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com> | 2019-06-25 19:23:54 +0300 |
commit | 5a5db0508a4dad5f0ddda6f3565152e00faebc47 (patch) | |
tree | 92d5a07ccd7eb31a185fc57ec9b4e39a9436b0a8 /spec | |
parent | c22cced31eedca5343552f64d5eaaff90d010bb2 (diff) |
Merge branch 'fix-microsoft-teams-notification-flags' into 'master'
Fix missing API notification flags for Microsoft Teams
See merge request gitlab-org/gitlab-ce!29824
(cherry picked from commit 51267258d1c39835c995eaaf29b7df678334ded1)
d5d2f8fb 59702 Fix API notification flags for MS Teams
f7658c0f 59702 Add changelog entry
1ce2c4dc Add missing test for Microsoft Teams notify_only_default_branch flag
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_services/microsoft_teams_service_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/models/project_services/microsoft_teams_service_spec.rb b/spec/models/project_services/microsoft_teams_service_spec.rb index c025d7c882e..3ffe633868f 100644 --- a/spec/models/project_services/microsoft_teams_service_spec.rb +++ b/spec/models/project_services/microsoft_teams_service_spec.rb @@ -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 |