Newer
Older
dmpopidor / spec / factories / question_options.rb
@Bodacious Bodacious on 27 Jul 2018 414 bytes Add specs for all models
# == Schema Information
#
# Table name: question_options
#
#  id          :integer          not null, primary key
#  question_id :integer
#  text        :string
#  number      :integer
#  is_default  :boolean
#  created_at  :datetime
#  updated_at  :datetime
#

FactoryBot.define do
  factory :question_option do
    question
    text { Faker::Lorem.sentence }
    sequence(:number)
    is_default false
  end
end