osem-fcy/spec/factories/booths.rb
Rahul 29c15c5d93 Booth invitation to invited users
User will enter email of users to invite to become booth responsible, which will create a user in User db with that email and a new booth request will be created.
2019-07-21 18:08:12 +05:30

17 lines
445 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 }
conference
submitter { create(:user) }
responsible_ids { [create(:user).id] }
invite_responsible { 'user@example.com, example' }
end
end