Newer
Older
dmpopidor / spec / factories / question_formats.rb
@Bodacious Bodacious on 25 Jul 2018 543 bytes Add extra validations for all models
# == Schema Information
#
# Table name: question_formats
#
#  id           :integer          not null, primary key
#  title        :string
#  description  :text
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#  option_based :boolean          default(FALSE)
#  formattype   :integer          default(0)
#

FactoryBot.define do
  factory :question_format do
    title { Faker::Lorem.words(3).join }
    description { Faker::Lorem.sentence }
    formattype { QuestionFormat::FORMAT_TYPES.sample }
  end
end