debian-mirror-gitlab/spec/factories/appearances.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
826 B
Ruby
Raw Normal View History

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
2019-12-21 20:55:43 +05:30
title { "GitLab Community Edition" }
description { "Open source software to collaborate on code" }
new_project_guidelines { "Custom project guidelines" }
2020-05-24 23:13:21 +05:30
profile_image_guidelines { "Custom profile image 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
2023-03-17 16:20:25 +05:30
trait :with_pwa_icon do
pwa_icon { 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