Sha256: 13efdb02442a4243a5347c12e25eb302b1edba6b0cf9b253192fbede8b80739c

Contents?: true

Size: 216 Bytes

Versions: 6

Compression:

Stored size: 216 Bytes

Contents

FactoryBot.define do
  factory :sub_question, class: Helena::SubQuestion do
    sequence(:text) { |n| "Question #{n}, #{Faker::Lorem.words(3).join(' ')}?" }
    sequence(:code) { |n| "y#{n}" }
    question
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
helena-2.1.0 spec/factories/helena/sub_questions.rb
helena-2.0.2 spec/factories/helena/sub_questions.rb
helena-2.0.1 spec/factories/helena/sub_questions.rb
helena-2.0.0 spec/factories/helena/sub_questions.rb
helena-1.3.1 spec/factories/helena/sub_questions.rb
helena-1.3.0 spec/factories/helena/sub_questions.rb