2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_bot
|
2016-02-22 14:49:16 -05:00
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2016-02-22 14:49:16 -05:00
|
|
|
factory :appearance do
|
2019-10-01 20:06:26 -04:00
|
|
|
title { "GitLab Community Edition" }
|
|
|
|
description { "Open source software to collaborate on code" }
|
|
|
|
new_project_guidelines { "Custom project guidelines" }
|
2016-02-22 14:49:16 -05:00
|
|
|
end
|
2018-02-21 11:43:21 -05:00
|
|
|
|
|
|
|
trait :with_logo do
|
|
|
|
logo { fixture_file_upload('spec/fixtures/dk.png') }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :with_header_logo do
|
|
|
|
header_logo { fixture_file_upload('spec/fixtures/dk.png') }
|
|
|
|
end
|
|
|
|
|
2018-12-25 03:24:00 -05:00
|
|
|
trait :with_favicon do
|
|
|
|
favicon { fixture_file_upload('spec/fixtures/dk.png') }
|
|
|
|
end
|
|
|
|
|
2018-02-21 11:43:21 -05:00
|
|
|
trait :with_logos do
|
|
|
|
with_logo
|
|
|
|
with_header_logo
|
|
|
|
end
|
2016-02-22 14:49:16 -05:00
|
|
|
end
|