5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 23:56:22 +00:00
panel/test/factories/post.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

17 lines
293 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :post, class: Post do
site
document
layout
locale do
('a'..'z').to_a.sample(2).join
end
initialize_with do
new(site: site, layout: layout, document: document, locale: locale)
end
end
end