2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2021-02-20 09:57:27 -08:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: lodgings
|
|
|
|
|
#
|
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
|
# description :text
|
|
|
|
|
# name :string
|
|
|
|
|
# photo_content_type :string
|
|
|
|
|
# photo_file_name :string
|
|
|
|
|
# photo_file_size :integer
|
|
|
|
|
# photo_updated_at :datetime
|
|
|
|
|
# picture :string
|
|
|
|
|
# website_link :string
|
|
|
|
|
# created_at :datetime
|
|
|
|
|
# updated_at :datetime
|
|
|
|
|
# conference_id :integer
|
|
|
|
|
#
|
2014-06-14 20:41:26 +05:30
|
|
|
|
2018-09-03 20:44:39 +02:00
|
|
|
FactoryBot.define do
|
2014-06-14 20:41:26 +05:30
|
|
|
factory :lodging do
|
2016-04-30 17:56:23 +02:00
|
|
|
name { "#{Faker::App.name} Hotel" }
|
2016-05-02 17:39:06 +02:00
|
|
|
description { Faker::Lorem.paragraph }
|
2016-04-30 17:56:23 +02:00
|
|
|
website_link { Faker::Internet.url }
|
2014-06-14 20:41:26 +05:30
|
|
|
end
|
2017-01-09 12:27:11 -06:00
|
|
|
|
|
|
|
|
factory :lodging_xss, parent: :lodging do
|
|
|
|
|
description { '<div id="divInjectedElement"></div>' }
|
|
|
|
|
end
|
2014-06-14 20:41:26 +05:30
|
|
|
end
|