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

10 lines
254 B
Ruby
Raw Normal View History

2016-04-02 18:10:28 +05:30
FactoryGirl.define do
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