2020-07-08 08:09:33 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :go_module, class: 'Packages::Go::Module' do
|
|
|
|
initialize_with { new(attributes[:project], attributes[:name], attributes[:path]) }
|
|
|
|
skip_create
|
|
|
|
|
2021-03-08 13:09:12 -05:00
|
|
|
project { association(:project, :repository) }
|
2020-07-08 08:09:33 -04:00
|
|
|
|
|
|
|
path { '' }
|
|
|
|
name { "#{Settings.build_gitlab_go_url}/#{project.full_path}#{path.empty? ? '' : '/'}#{path}" }
|
|
|
|
end
|
|
|
|
end
|