Sha256: 71ecb01219d064a0e7a7f59d95005da11d3e19e2814d42a3eee5235a0171918b

Contents?: true

Size: 1005 Bytes

Versions: 1

Compression:

Stored size: 1005 Bytes

Contents

FactoryBot.define do
  factory :question, :class => "Rapidfire::Question" do
    survey  { FactoryBot.create(:survey) }
    question_text   { "Sample Question" }

    factory :q_checkbox, :class => "Rapidfire::Questions::Checkbox" do
      answer_options  { "hindi\r\ntelugu\r\nkannada\r\n" }
    end

    factory :q_date, :class => "Rapidfire::Questions::Date" do
    end

    factory :q_long, :class => "Rapidfire::Questions::Long" do
    end

    factory :q_numeric, :class => "Rapidfire::Questions::Numeric" do
    end

    factory :q_radio, :class => "Rapidfire::Questions::Radio" do
      answer_options  { "male\r\nfemale\r\n" }
    end

    factory :q_select, :class => "Rapidfire::Questions::Select" do
      answer_options  { "mac\r\nwindows\r\n" }
    end

    factory :q_short, :class => "Rapidfire::Questions::Short" do
    end

    factory :q_file, :class => "Rapidfire::Questions::File" do
    end

    factory :q_multifile, :class => "Rapidfire::Questions::MultiFile" do
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapidfire-8.0.0 spec/factories/questions_factory.rb