2018-05-19 17:07:08 +08:00
|
|
|
FactoryBot.define do
|
2014-03-31 12:18:40 +08:00
|
|
|
factory :comment do
|
2019-04-22 22:07:17 +08:00
|
|
|
content { 'content' * 10 }
|
|
|
|
name { 'commentor' }
|
|
|
|
email { 'tester@xx.com' }
|
2014-03-31 12:18:40 +08:00
|
|
|
association :post
|
|
|
|
end
|
2014-04-02 16:03:08 +08:00
|
|
|
|
|
|
|
factory :comment_no_post, class: Comment do
|
2019-04-22 22:07:17 +08:00
|
|
|
content { 'content' * 10 }
|
|
|
|
name { 'commentor' }
|
|
|
|
email { 'tester@xx.com' }
|
2014-04-02 16:03:08 +08:00
|
|
|
end
|
2014-03-31 12:18:40 +08:00
|
|
|
end
|