5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 14:26:22 +00:00
panel/test/factories/jekyll.rb

17 lines
422 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :jekyll, class: Jekyll::Site do
initialize_with do
new(Jekyll.configuration(
'source' => Rails.root.join('test', 'fixtures', 'site').to_s,
'quiet' => true,
'safe' => true,
'watch' => false,
'destination' => Dir.mktmpdir,
'excerpt_separator' => ''
))
end
end
end