2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_bot
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
FactoryBot.define do
|
2016-04-02 18:10:28 +05:30
|
|
|
factory :appearance do
|
2018-05-09 12:01:36 +05:30
|
|
|
title "GitLab Community Edition"
|
|
|
|
description "Open source software to collaborate on code"
|
2018-03-17 18:26:18 +05:30
|
|
|
new_project_guidelines "Custom project guidelines"
|
2016-04-02 18:10:28 +05:30
|
|
|
end
|
2018-05-09 12:01:36 +05:30
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-02-15 15:39:39 +05:30
|
|
|
trait :with_favicon do
|
|
|
|
favicon { fixture_file_upload('spec/fixtures/dk.png') }
|
|
|
|
end
|
|
|
|
|
2018-05-09 12:01:36 +05:30
|
|
|
trait :with_logos do
|
|
|
|
with_logo
|
|
|
|
with_header_logo
|
|
|
|
end
|
2016-04-02 18:10:28 +05:30
|
|
|
end
|