osem-fcy/spec/factories/rooms.rb

28 lines
521 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2021-02-20 09:57:27 -08:00
# == Schema Information
#
# Table name: rooms
#
# id :bigint not null, primary key
# guid :string not null
# name :string not null
# order :integer
# size :integer
# url :string
# venue_id :integer not null
#
FactoryBot.define do
factory :room do
2016-04-30 17:56:23 +02:00
name { "Room #{Faker::Address.country}" }
size { 4 }
2016-04-30 17:56:23 +02:00
2015-11-07 11:43:36 +02:00
venue
2014-05-19 12:49:04 +05:30
factory :room_for_100 do
name { 'Room for 100' }
size { 100 }
end
end
end