5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 16:06:23 +00:00
panel/test/factories/site.rb
f 678bf88da3
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
feat: poder generar modelos para los tests
2023-10-06 11:00:50 -03:00

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