Commit 25d51bc7 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'chat-responder-slack-app' into 'master'

Define a chat responder for the Slack app

Closes #5383

See merge request gitlab-org/gitlab-ee!5077
parents e78d9834 5906ba19
...@@ -28,6 +28,10 @@ module Projects ...@@ -28,6 +28,10 @@ module Projects
success success
end end
def chat_responder
Gitlab::Chat::Responder::Slack
end
private private
def make_sure_chat_name_created(slack_data) 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 ...@@ -46,4 +46,12 @@ describe Projects::SlackApplicationInstallService do
expect_slack_integration_is_created(project) expect_slack_integration_is_created(project)
expect_chat_name_is_created(project) expect_chat_name_is_created(project)
end 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 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