osem-fcy/spec/factories/booths.rb

33 lines
880 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2021-02-20 09:57:27 -08:00
# == Schema Information
#
# Table name: booths
#
# id :bigint not null, primary key
# description :text
# logo_link :string
# reasoning :text
# state :string
# submitter_relationship :text
# title :string
# website_url :string
# created_at :datetime not null
# updated_at :datetime not null
# conference_id :integer
#
FactoryBot.define do
2017-05-17 13:31:27 +03:00
factory :booth do
title { Faker::Hipster.sentence }
description { Faker::Lorem.paragraph }
reasoning { Faker::Lorem.paragraph }
website_url { Faker::Internet.url }
submitter_relationship { Faker::Lorem.paragraph }
conference
2017-07-20 14:20:46 +03:00
submitter { create(:user) }
2017-07-16 18:20:12 +03:00
responsible_ids { [create(:user).id] }
2017-05-17 13:31:27 +03:00
end
end