mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 23:56:22 +00:00
17 lines
293 B
Ruby
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
|