Retrospring/spec/factories/answers.rb

7 lines
168 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 :answer do |u|
u.sequence(:content) { |n| "This is an answer. I'm number #{n}!" }
2020-04-19 08:27:42 -07:00
u.user { FactoryBot.create(:user) }
2015-01-18 05:15:21 -08:00
end
end