debian-mirror-gitlab/spec/factories/remote_mirrors.rb
2020-05-25 16:23:42 +05:30

13 lines
302 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :remote_mirror, class: 'RemoteMirror' do
association :project, :repository
url { "http://foo:bar@test.com" }
trait :ssh do
url { 'ssh://git@test.com:foo/bar.git' }
auth_method { 'ssh_public_key' }
end
end
end