summaryrefslogtreecommitdiff
path: root/spec/factories/remote_mirrors.rb
blob: aa0ace30d90c595333b0d2a55a06d3436b9d8650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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