Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-06-19 08:43:35 +0300
committerStan Hu <stanhu@gmail.com>2019-06-19 08:43:35 +0300
commit51267258d1c39835c995eaaf29b7df678334ded1 (patch)
tree0d04c9d1a9c2c7e79d3cb8f5a953064c2a3e7e39 /spec
parent0cd04bf35fd93a787afbf90da3284e8ecdfe424f (diff)
parent1ce2c4dcafce0aa7338647001b3c2b13b721640a (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
Diffstat (limited to 'spec')
-rw-r--r--spec/models/project_services/microsoft_teams_service_spec.rb12
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