debian-mirror-gitlab/spec/factories/spam_logs.rb

10 lines
253 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
FactoryBot.define do
2016-04-02 18:10:28 +05:30
factory :spam_log do
user
2017-08-17 22:00:37 +05:30
sequence(:source_ip) { |n| "42.42.42.#{n % 255}" }
2016-04-02 18:10:28 +05:30
noteable_type 'Issue'
2017-08-17 22:00:37 +05:30
sequence(:title) { |n| "Spam title #{n}" }
description { "Spam description\nwith\nmultiple\nlines" }
2016-04-02 18:10:28 +05:30
end
end