You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
659 B
25 lines
659 B
FactoryBot.define do |
|
factory :organisation do |
|
name { "DLUHC" } |
|
address_line1 { "2 Marsham Street" } |
|
address_line2 { "London" } |
|
provider_type { "LA" } |
|
housing_registration_no { "1234" } |
|
postcode { "SW1P 4DF" } |
|
created_at { Time.zone.now } |
|
updated_at { Time.zone.now } |
|
holds_own_stock { true } |
|
end |
|
|
|
factory :organisation_rent_period do |
|
organisation |
|
rent_period { 2 } |
|
created_at { Time.zone.now } |
|
updated_at { Time.zone.now } |
|
end |
|
|
|
factory :organisation_relationship do |
|
child_organisation { FactoryBot.create(:organisation) } |
|
parent_organisation { FactoryBot.create(:organisation) } |
|
end |
|
end
|
|
|