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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
302 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-10-15 14:42:47 +05:30
FactoryBot.define do
factory :remote_mirror, class: 'RemoteMirror' do
association :project, :repository
2019-12-21 20:55:43 +05:30
url { "http://foo:bar@test.com" }
2020-05-24 23:13:21 +05:30
trait :ssh do
url { 'ssh://git@test.com:foo/bar.git' }
auth_method { 'ssh_public_key' }
end
2018-10-15 14:42:47 +05:30
end
end