discourse-solved/spec/fabricators/solved_hook_fabricator.rb
Krzysztof Kotlarek 7e59ece789
FIX: granular webhooks (#248)
After those core changes we need additional translations

https://github.com/discourse/discourse/pull/23070
2023-10-09 03:26:29 +00:00

9 lines
232 B
Ruby

# frozen_string_literal: true
Fabricator(:solved_web_hook, from: :web_hook) do
after_build do |web_hook|
web_hook.web_hook_event_types =
WebHookEventType.where(name: %w[accepted_solution unaccepted_solution])
end
end