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

20 lines
401 B
Ruby
Raw Permalink Normal View History

2019-07-11 19:00:28 +00:00
# frozen_string_literal: true
FactoryBot.define do
factory :site do
2019-07-12 18:34:16 +00:00
name { "test-#{SecureRandom.hex}" }
2019-07-31 20:55:34 +00:00
title { SecureRandom.hex }
description { SecureRandom.hex * 2 }
2019-07-17 22:18:48 +00:00
design
2019-07-19 22:37:53 +00:00
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
2019-07-11 19:00:28 +00:00
end
end