FEATURE: add outgoing web hooks for Chat messages

This commit is contained in:
Sérgio Saquetim
2023-09-13 17:31:42 -03:00
committed by GitHub
parent 6c20d8cc8c
commit e03dd76dc6
10 changed files with 324 additions and 4 deletions

View File

@@ -64,6 +64,10 @@ RSpec.describe WebHook do
SiteSetting.stubs(:voting_enabled).returns(true)
voting_event_types = WebHookEventType.active.where(name: "topic_voting")
expect(voting_event_types.count).to eq(1)
SiteSetting.stubs(:chat_enabled).returns(true)
chat_enabled_types = WebHookEventType.active.where("name LIKE 'chat_%'")
expect(chat_enabled_types.count).to eq(1)
end
describe "#active_web_hooks" do