mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add outgoing web hooks for Chat messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user