DEV: Update webhook site setting for topic voting (#27935)

This commit is contained in:
Natalie Tay
2024-07-17 20:26:48 +08:00
committed by GitHub
parent a714ca9759
commit 7d02b45304
3 changed files with 5 additions and 5 deletions

View File

@ -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])
#