discourse/spec/fabricators/flag_fabricator.rb

6 lines
109 B
Ruby

Fabricator(:flag, from: :post_action) do
user
post
post_action_type_id PostActionType.types[:spam]
end