retrospring/spec/factories/smile.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
234 B
Ruby
Raw Normal View History

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