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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/topics.rb')
-rw-r--r--spec/factories/topics.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/topics.rb b/spec/factories/topics.rb
index a6e614e0c66..d5da2dd4938 100644
--- a/spec/factories/topics.rb
+++ b/spec/factories/topics.rb
@@ -4,5 +4,9 @@ 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