2016-12-26 10:19:56 +08:00
|
|
|
require 'faker'
|
|
|
|
FactoryGirl.define do
|
|
|
|
factory :comment do
|
|
|
|
|
|
|
|
|
|
|
|
sequence(:content){ |n| "This is comment content#{n}"}
|
|
|
|
|
|
|
|
|
2016-12-27 20:15:05 +08:00
|
|
|
|
|
|
|
factory :comment_content_nil do
|
|
|
|
content nil
|
2016-12-26 10:19:56 +08:00
|
|
|
end
|
|
|
|
|
2016-12-27 20:15:05 +08:00
|
|
|
factory :comment_content_allspace do
|
2016-12-26 10:19:56 +08:00
|
|
|
content " "
|
|
|
|
end
|
|
|
|
|
2016-12-27 20:15:05 +08:00
|
|
|
|
2016-12-26 10:19:56 +08:00
|
|
|
end
|
|
|
|
end
|