summaryrefslogtreecommitdiff
path: root/spec/factories/milestone_releases.rb
blob: 08e109480ab882d378f42c750d12d4809ce015e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

FactoryBot.define do
  factory :milestone_release do
    milestone
    release

    before(:create, :build) do |mr|
      project = create(:project)
      mr.milestone.project = project
      mr.release.project = project
    end
  end
end