0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-13 13:17:29 +08:00
discourse/plugins/discourse-assign/spec/fabricators/assign_hook_fabricator.rb
2025-07-15 16:38:05 +02:00

7 lines
208 B
Ruby
Vendored

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