Retrospring/spec/factories/questions.rb

7 lines
159 B
Ruby

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