debian-mirror-gitlab/spec/factories/milestone_releases.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
270 B
Ruby
Raw Normal View History

2019-12-04 20:38:33 +05:30
# 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