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

12 lines
284 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
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