discourse/spec/fabricators/like_fabricator.rb

8 lines
140 B
Ruby

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