discourse/spec/fabricators/incoming_link_fabricator.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
177 B
Ruby
Raw Normal View History

# frozen_string_literal: true
Fabricator(:incoming_link) do
user
post
2017-07-27 20:20:09 -05:00
ip_address { sequence(:ip_address) { |n| "123.#{(n * 3) % 255}.#{(n * 2) % 255}.#{n % 255}" } }
end