mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 10:06:03 +01:00
13 lines
268 B
Ruby
13 lines
268 B
Ruby
|
# 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
|