debian-mirror-gitlab/spec/factories/abuse_reports.rb
2023-05-27 22:25:52 +05:30

15 lines
343 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :abuse_report do
reporter factory: :user
user
message { 'User sends spam' }
reported_from_url { 'http://gitlab.com' }
links_to_spam { ['https://gitlab.com/issue1', 'https://gitlab.com/issue2'] }
trait :closed do
status { 'closed' }
end
end
end