debian-mirror-gitlab/spec/factories/clusters/agents.rb

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

11 lines
219 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :cluster_agent, class: 'Clusters::Agent' do
project
2021-11-11 11:23:49 +05:30
association :created_by_user, factory: :user
2020-10-24 23:57:45 +05:30
sequence(:name) { |n| "agent-#{n}" }
end
end