Commit 5906ba19 authored by Yorick Peterse's avatar Yorick Peterse

Define a chat responder for the Slack app

This ensures that the Slack application service can be used with
chatops.
parent dbf82adb
......@@ -28,6 +28,10 @@ module Projects
success
end
def chat_responder
Gitlab::Chat::Responder::Slack
end
private
def make_sure_chat_name_created(slack_data)
......
---
title: Define a chat responder for the Slack app
merge_request:
author:
type: fixed
......@@ -46,4 +46,12 @@ describe Projects::SlackApplicationInstallService do
expect_slack_integration_is_created(project)
expect_chat_name_is_created(project)
end
describe '#chat_responder' do
it 'returns the chat responder to use' do
srv = service
expect(srv.chat_responder).to eq(Gitlab::Chat::Responder::Slack)
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