mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 12:26:21 +00:00
23 lines
445 B
Ruby
23 lines
445 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
|
|
|
|
jekyll do
|
|
build(:jekyll)
|
|
end
|
|
|
|
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
|