osem-fcy/spec/factories/lodgings.rb

32 lines
769 B
Ruby
Raw Normal View History

# 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
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
factory :lodging_xss, parent: :lodging do
description { '<div id="divInjectedElement"></div>' }
end
2014-06-14 20:41:26 +05:30
end