ensl.org/spec/factories/server.rb

8 lines
218 B
Ruby
Raw Normal View History

2015-05-14 16:27:12 +00:00
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}" }
end
end