Sha256: e2dceaf143ff0f7183756a147e9e3aec9ef14e492410d3c0ff3db9a0e60888fb

Contents?: true

Size: 731 Bytes

Versions: 7

Compression:

Stored size: 731 Bytes

Contents

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

    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

7 entries across 7 versions & 1 rubygems

Version Path
helena-1.1.0 spec/factories/helena/questions.rb
helena-1.0.3 spec/factories/helena/questions.rb
helena-1.0.2 spec/factories/helena/questions.rb
helena-1.0.1 spec/factories/helena/questions.rb
helena-1.0.0.rc4 spec/factories/helena/questions.rb
helena-1.0.0.rc3 spec/factories/helena/questions.rb
helena-1.0.0.rc2 spec/factories/helena/questions.rb