mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 10:36:22 +00:00
19 lines
401 B
Ruby
19 lines
401 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :site do
|
|
name { "test-#{SecureRandom.hex}" }
|
|
title { SecureRandom.hex }
|
|
description { SecureRandom.hex * 2 }
|
|
design
|
|
licencia
|
|
|
|
after :build do |site|
|
|
site.deploys << build(:deploy_local, site: site)
|
|
end
|
|
|
|
after :create do |site|
|
|
site.deploys << create(:deploy_local, site: site)
|
|
end
|
|
end
|
|
end
|