2016-01-09 14:30:34 -05:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :spam_log do
|
|
|
|
user
|
2017-03-23 09:08:39 -04:00
|
|
|
sequence(:source_ip) { |n| "42.42.42.#{n % 255}" }
|
2016-01-26 13:59:23 -05:00
|
|
|
noteable_type 'Issue'
|
2017-03-23 09:08:39 -04:00
|
|
|
sequence(:title) { |n| "Spam title #{n}" }
|
|
|
|
description { "Spam description\nwith\nmultiple\nlines" }
|
2016-01-09 14:30:34 -05:00
|
|
|
end
|
|
|
|
end
|