discourse/spec/fabricators/screened_ip_address_fabrica...

4 lines
138 B
Ruby
Raw Normal View History

Fabricator(:screened_ip_address) do
2017-07-27 21:20:09 -04:00
ip_address { sequence(:ip_address) { |n| "123.#{(n * 3) % 255}.#{(n * 2) % 255}.#{n % 255}" } }
end