Retrospring/spec/factories/smile.rb

10 lines
246 B
Ruby
Raw Normal View History

2020-04-30 10:04:20 -07:00
# frozen_string_literal: true
FactoryBot.define do
factory :smile, class: Appendable::Reaction do
2022-07-09 10:22:05 -07:00
user { FactoryBot.create(:user) }
parent { FactoryBot.create(:answer, user: FactoryBot.create(:user)) }
content { "🙂" }
2020-04-30 10:04:20 -07:00
end
end