mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 15:56:20 +00:00
18 lines
269 B
Ruby
18 lines
269 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
FactoryBot.define do
|
||
|
factory :collection, class: Jekyll::Collection do
|
||
|
site do
|
||
|
build(:jekyll)
|
||
|
end
|
||
|
|
||
|
label do
|
||
|
('a'..'z').to_a.sample(2).join
|
||
|
end
|
||
|
|
||
|
initialize_with do
|
||
|
new(site, label)
|
||
|
end
|
||
|
end
|
||
|
end
|