mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 08:41:25 +08:00
DEV: Update webhook site setting for topic voting (#27935)
This commit is contained in:
@ -57,7 +57,7 @@ RSpec.describe WebHook do
|
||||
assign_event_types = WebHookEventType.active.where(group: "assign").pluck(:name)
|
||||
expect(assign_event_types).to eq(%w[assigned unassigned])
|
||||
|
||||
SiteSetting.stubs(:voting_enabled).returns(true)
|
||||
SiteSetting.stubs(:topic_voting_enabled).returns(true)
|
||||
voting_event_types = WebHookEventType.active.where(group: "voting").pluck(:name)
|
||||
expect(voting_event_types).to eq(%w[topic_upvote topic_unvote])
|
||||
#
|
||||
|
Reference in New Issue
Block a user