discourse/spec/fabricators/screened_ip_address_fabricator.rb
2015-04-24 14:37:16 -04:00

3 lines
128 B
Ruby

Fabricator(:screened_ip_address) do
ip_address { sequence(:ip_address) { |n| "123.#{(n*3)%255}.#{(n*2)%255}.#{n%255}" } }
end