summaryrefslogtreecommitdiff
path: root/spec/factories/spam_logs.rb
blob: e369f9f13e9d0c42ea913cefc6707e981266af1c (plain)
1
2
3
4
5
6
7
8
9
FactoryGirl.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