discourse-solved/spec/fabricators/solved_topic_fabricator.rb

7 lines
174 B
Ruby

# frozen_string_literal: true
Fabricator(:solved_topic, from: DiscourseSolved::SolvedTopic) do
topic
answer_post { Fabricate(:post) }
accepter { Fabricate(:user) }
end