Retrospring/spec/factories/questions.rb

7 lines
162 B
Ruby

FactoryBot.define do
factory :question do |u|
u.sequence(:content) { |n| "#{QuestionGenerator.generate}#{n}" }
u.author_is_anonymous { true }
end
end