foreman_docker / test / factories / docker_registry.rb @ ada932ab
1 |
FactoryGirl.define do |
---|---|
2 |
factory :docker_registry do |
3 |
sequence(:name) { |n| "image#{n}" } |
4 |
sequence(:url) { |n| "http://localhost/#{n}" } |
5 |
end
|
6 |
|
7 |
trait :with_location do |
8 |
locations { [FactoryGirl.build(:location)] } |
9 |
end
|
10 |
|
11 |
trait :with_organization do |
12 |
organizations { [FactoryGirl.build(:organization)] } |
13 |
end
|
14 |
end
|