Project

General

Profile

Download (421 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_docker / test / factories / docker_registry.rb @ 64f6a1f2

1
FactoryGirl.define do
2
  factory :docker_registry do
3
    sequence(:name) { |n| "hub#{n}" }
4
    sequence(:url) { |n| "http://localhost/#{n}" }
5
    sequence(:username) { |n| "username#{n}" }
6
    sequence(:password) { |n| "password#{n}" }
7
  end
8

    
9
  trait :with_location do
10
    locations { [FactoryGirl.build(:location)] }
11
  end
12

    
13
  trait :with_organization do
14
    organizations { [FactoryGirl.build(:organization)] }
15
  end
16
end