2019-09-16 16:05:00 +02:00
|
|
|
FactoryBot.define do
|
|
|
|
|
factory :comment do
|
2019-09-18 17:00:58 +02:00
|
|
|
sequence(:body) { |n| "Comment #{n}" }
|
2019-09-16 16:05:00 +02:00
|
|
|
user
|
|
|
|
|
post
|
|
|
|
|
parent { nil }
|
2019-10-01 19:15:03 +02:00
|
|
|
is_post_update { false }
|
2019-09-16 16:05:00 +02:00
|
|
|
end
|
|
|
|
|
end
|