discourse/spec/fabricators/flag_fabricator.rb

8 lines
140 B
Ruby

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