debian-mirror-gitlab/spec/factories/go_modules.rb
2020-08-09 17:44:08 +05:30

13 lines
384 B
Ruby

# 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
project { create :project, :repository }
path { '' }
name { "#{Settings.build_gitlab_go_url}/#{project.full_path}#{path.empty? ? '' : '/'}#{path}" }
end
end