Retrospring/spec/factories/questions.rb

7 lines
159 B
Ruby
Raw Normal View History

2015-01-18 05:15:21 -08:00
FactoryGirl.define do
factory :question do |u|
u.sequence(:content) { |n| "#{QuestionGenerator.generate}#{n}" }
u.author_is_anonymous true
end
end