summaryrefslogtreecommitdiff
path: root/spec/factories/spam_logs.rb
blob: a467f850a80515e6eda5c40bcd62da2cdafb3b4d (plain)
1
2
3
4
5
6
7
8
9
FactoryBot.define do
  factory :spam_log do
    user
    sequence(:source_ip) { |n| "42.42.42.#{n % 255}" }
    noteable_type 'Issue'
    sequence(:title) { |n| "Spam title #{n}" }
    description { "Spam description\nwith\nmultiple\nlines" }
  end
end