gitlab-org--gitlab-foss/spec/factories/internal_ids.rb
2018-03-16 13:35:25 +01:00

7 lines
140 B
Ruby

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