retrospring/spec/factories/smile.rb
2022-07-16 15:58:30 +02:00

9 lines
246 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :smile, class: Appendable::Reaction do
user { FactoryBot.create(:user) }
parent { FactoryBot.create(:answer, user: FactoryBot.create(:user)) }
content { "🙂" }
end
end