mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 12:30:48 +00:00
16 lines
328 B
Ruby
Executable file
16 lines
328 B
Ruby
Executable file
FactoryGirl.define do
|
|
factory :server do
|
|
sequence(:name) { |n| "ServerName#{n}" }
|
|
sequence(:dns) { |n| "DNS#{n}" }
|
|
sequence(:ip) { |n| "192.168.#{n % 255}.#{n}" }
|
|
sequence(:port) { |n| "#{1000 + n}" }
|
|
|
|
trait :active do
|
|
active true
|
|
end
|
|
|
|
trait :inactive do
|
|
active false
|
|
end
|
|
end
|
|
end
|