Retrospring/spec/factories/answers.rb

7 lines
166 B
Ruby
Raw Normal View History

2015-01-18 05:15:21 -08:00
FactoryGirl.define do
factory :answer do |u|
u.sequence(:content) { |n| "This is an answer. I'm number #{n}!" }
u.user FactoryGirl.create(:user)
end
end