Files
astuto/spec/factories/comments.rb

10 lines
162 B
Ruby
Raw Normal View History

2019-09-16 16:05:00 +02:00
FactoryBot.define do
factory :comment do
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