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

8 lines
140 B
Ruby
Raw Normal View History

2018-05-09 12:01:36 +05:30
FactoryBot.define do
factory :internal_id do
project
usage :issues
last_value { project.issues.maximum(:iid) || 0 }
end
end