summaryrefslogtreecommitdiff
path: root/spec/factories/appearances.rb
blob: 321c31d75658e530d21c56aedb2ae510d0b700b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true

# Read about factories at https://github.com/thoughtbot/factory_bot

FactoryBot.define do
  factory :appearance do
    title { "GitLab Community Edition" }
    description { "Open source software to collaborate on code" }
    new_project_guidelines { "Custom project guidelines" }
    profile_image_guidelines { "Custom profile image guidelines" }
  end

  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_pwa_icon do
    pwa_icon { fixture_file_upload('spec/fixtures/dk.png') }
  end

  trait :with_favicon do
    favicon { fixture_file_upload('spec/fixtures/dk.png') }
  end

  trait :with_logos do
    with_logo
    with_header_logo
  end
end