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

subscriptions.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8ba96d9fa295c3e0e66e228070d44408ae802799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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