5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 23:36:21 +00:00
panel/test/factories/site.rb

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