Skip to content
代码片段 群组 项目
提交 0fa1a916 编辑于 作者: Rémy Coutable's avatar Rémy Coutable
浏览文件

Merge branch 'fix_chatops_responder' into 'master'

Fix ChatOps responder for gitlab.com

See merge request gitlab-org/gitlab-ee!10416
No related branches found
No related tags found
无相关合并请求
......@@ -40,4 +40,8 @@ def self.to_param
def fields
[]
end
def chat_responder
Gitlab::Chat::Responder::Slack
end
end
......@@ -30,10 +30,6 @@ def execute
success
end
def chat_responder
Gitlab::Chat::Responder::Slack
end
private
# rubocop: disable CodeReuse/ActiveRecord
......
---
title: Fix ChatOps Slack responder for gitlab.com
merge_request: 10416
author:
type: fixed
# frozen_string_literal: true
require 'spec_helper'
describe GitlabSlackApplicationService do
describe '#chat_responder' do
it 'returns the chat responder to use' do
expect(subject.chat_responder).to eq(Gitlab::Chat::Responder::Slack)
end
end
end
......@@ -46,12 +46,4 @@ def expect_chat_name_is_created(project)
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
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册