discourse/spec/fabricators/incoming_link_fabricator.rb

8 lines
177 B
Ruby

# frozen_string_literal: true
Fabricator(:incoming_link) do
user
post
ip_address { sequence(:ip_address) { |n| "123.#{(n * 3) % 255}.#{(n * 2) % 255}.#{n % 255}" } }
end