debian-mirror-gitlab/spec/factories/subscriptions.rb
2021-04-29 21:17:54 +05:30

15 lines
295 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :subscription do
project
user { project.creator }
subscribable factory: :issue
trait :group_label do
project { nil }
user { association(:user) }
subscribable factory: :group_label
end
end
end