mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:09:53 +01:00
12 lines
261 B
Ruby
12 lines
261 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :comment do
|
|
transient do
|
|
answer_content { Faker::Lorem.sentence }
|
|
end
|
|
|
|
content { Faker::Lorem.sentence }
|
|
answer { FactoryBot.build(:answer, content: answer_content) }
|
|
end
|
|
end
|