Retrospring/spec/factories/questions.rb

7 lines
162 B
Ruby
Raw Normal View History

2020-04-19 08:27:42 -07:00
FactoryBot.define do
2015-01-18 05:15:21 -08:00
factory :question do |u|
u.sequence(:content) { |n| "#{QuestionGenerator.generate}#{n}" }
2020-04-19 08:27:42 -07:00
u.author_is_anonymous { true }
2015-01-18 05:15:21 -08:00
end
end