spam_logs.rb 254 Bytes
Newer Older
1 2 3
FactoryGirl.define do
  factory :spam_log do
    user
4
    sequence(:source_ip) { |n| "42.42.42.#{n % 255}" }
5
    noteable_type 'Issue'
6 7
    sequence(:title) { |n| "Spam title #{n}" }
    description { "Spam description\nwith\nmultiple\nlines" }
8 9
  end
end