ambition/spec/factories/comments.rb

20 lines
302 B
Ruby

require 'faker'
FactoryGirl.define do
factory :comment do
sequence(:content){ |n| "This is comment content#{n}"}
factory :comment_content_null do
content ""
end
factory :comment_conten_allspace do
content " "
end
end
end