diff options
Diffstat (limited to 'spec/models/integrations/microsoft_teams_spec.rb')
-rw-r--r-- | spec/models/integrations/microsoft_teams_spec.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/spec/models/integrations/microsoft_teams_spec.rb b/spec/models/integrations/microsoft_teams_spec.rb index 21b9a005746..06b285a855c 100644 --- a/spec/models/integrations/microsoft_teams_spec.rb +++ b/spec/models/integrations/microsoft_teams_spec.rb @@ -3,6 +3,17 @@ require 'spec_helper' RSpec.describe Integrations::MicrosoftTeams do + it_behaves_like "chat integration", "Microsoft Teams" do + let(:client) { ::MicrosoftTeams::Notifier } + let(:client_arguments) { webhook_url } + + let(:payload) do + { + summary: be_present + } + end + end + let(:chat_integration) { described_class.new } let(:webhook_url) { 'https://example.gitlab.com/' } @@ -304,7 +315,7 @@ RSpec.describe Integrations::MicrosoftTeams do context 'with protected branch' do before do - create(:protected_branch, project: project, name: 'a-protected-branch') + create(:protected_branch, :create_branch_on_repository, project: project, name: 'a-protected-branch') end let(:pipeline) do |