Welcome to mirror list, hosted at ThFree Co, Russian Federation.

topics.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d5da2dd4938bdb13d42c89d2b474f7a564d66b72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

FactoryBot.define do
  factory :topic, class: 'Projects::Topic' do
    name { generate(:name) }
    title { generate(:title) }

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