osem-fcy/spec/factories/booths.rb
2019-08-16 16:57:15 +05:30

18 lines
481 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
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 }
email { Faker::Internet.email }
conference
submitter { create(:user) }
responsible_ids { [create(:user).id] }
invite_responsible { 'user@example.com, example' }
end
end