discourse/spec/fabricators/flag_fabricator.rb

5 lines
108 B
Ruby

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