Retrospring/spec/factories/answer.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
268 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :answer do
transient do
question_content { Faker::Lorem.sentence }
end
content { Faker::Lorem.sentence }
question { FactoryBot.build(:question, content: question_content) }
end
end