94bb660460
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
16 lines
345 B
Ruby
16 lines
345 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
trait :base_badge do
|
|
link_url { generate(:url) }
|
|
image_url { generate(:url) }
|
|
end
|
|
|
|
factory :project_badge, traits: [:base_badge], class: ProjectBadge do
|
|
project
|
|
end
|
|
|
|
factory :group_badge, aliases: [:badge], traits: [:base_badge], class: GroupBadge do
|
|
group
|
|
end
|
|
end
|