Sha256: 364be97e5a0408f7042f90fbcd07f128a6de4a38bfe906d870ed8924209d099b

Contents?: true

Size: 804 Bytes

Versions: 3

Compression:

Stored size: 804 Bytes

Contents

FactoryGirl.define do
  factory :question do
    survey  { FactoryGirl.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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rapidfire-4.0.0 spec/factories/questions_factory.rb
rapidfire-3.1.0 spec/factories/questions_factory.rb
rapidfire-3.0.0 spec/factories/questions_factory.rb