debian-mirror-gitlab/spec/factories/internal_ids.rb
2019-10-12 21:52:04 +05:30

9 lines
171 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :internal_id do
project
usage :issues
last_value { project.issues.maximum(:iid) || 0 }
end
end