osem-fcy/spec/factories/contacts.rb

35 lines
887 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2021-02-20 09:57:27 -08:00
# == Schema Information
#
# Table name: contacts
#
# id :bigint not null, primary key
# blog :string
# email :string
# facebook :string
# googleplus :string
# instagram :string
# mastodon :string
# social_tag :string
# sponsor_email :string
# twitter :string
# youtube :string
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
2016-04-30 17:56:23 +02:00
factory :contact do
social_tag { SecureRandom.urlsafe_base64(4) }
email { Faker::Internet.email }
sponsor_email { Faker::Internet.email }
facebook { Faker::Internet.url('facebook.com') }
googleplus { Faker::Internet.url('plus.google.com') }
twitter { Faker::Internet.url('twitter.com') }
instagram { Faker::Internet.url('instagram.com') }
conference
end
end