Sha256: 139a2b5604e7d95eaa47f0b8411965ac89005ea5599ae192face7a19ab46b95e

Contents?: true

Size: 748 Bytes

Versions: 6

Compression:

Stored size: 748 Bytes

Contents

FactoryBot.define do
  factory :question, class: Helena::Question do
    sequence(:question_text) { |n| "Question #{n}, #{Faker::Lorem.words(3).join(' ')}?" }
    sequence(:code) { |n| "x#{n}" }
    question_group

    factory :short_text_question, class: Helena::Questions::ShortText
    factory :static_text_question, class: Helena::Questions::StaticText
    factory :long_text_question, class: Helena::Questions::LongText
    factory :radio_group_question, class: Helena::Questions::RadioGroup
    factory :checkbox_group_question, class: Helena::Questions::CheckboxGroup
    factory :radio_matrix_question, class: Helena::Questions::RadioMatrix
    factory :bipolar_radio_matrix_question, class: Helena::Questions::BipolarRadioMatrix
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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