gitlab-org--gitlab-foss/spec/factories/appearances.rb

29 lines
653 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :appearance do
2018-03-26 13:07:46 +00:00
title "GitLab Community Edition"
2018-02-21 16:43:21 +00:00
description "Open source software to collaborate on code"
new_project_guidelines "Custom project guidelines"
end
2018-02-21 16:43:21 +00: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
trait :with_favicon do
favicon { fixture_file_upload('spec/fixtures/dk.png') }
end
2018-02-21 16:43:21 +00:00
trait :with_logos do
with_logo
with_header_logo
end
end