2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-05 12:51:40 -05:00
|
|
|
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
|