appearances.rb 622 Bytes
Newer Older
1
# Read about factories at https://github.com/thoughtbot/factory_bot
2

3
FactoryBot.define do
4
  factory :appearance do
Micaël Bergeron's avatar
Micaël Bergeron committed
5
    title "GitLab Community Edition"
6
    description "Open source software to collaborate on code"
7
    new_project_guidelines "Custom project guidelines"
8
  end
9 10 11 12 13 14 15 16 17

  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

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

22 23 24 25
  trait :with_logos do
    with_logo
    with_header_logo
  end
26
end