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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
447 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
2015-09-11 14:41:01 +05:30
factory :abuse_report do
reporter factory: :user
user
2019-12-21 20:55:43 +05:30
message { 'User sends spam' }
2023-03-17 16:20:25 +05:30
reported_from_url { 'http://gitlab.com' }
2023-04-23 21:23:45 +05:30
links_to_spam { ['https://gitlab.com/issue1', 'https://gitlab.com/issue2'] }
2023-05-27 22:25:52 +05:30
trait :closed do
status { 'closed' }
end
2023-06-20 00:43:36 +05:30
trait :with_screenshot do
screenshot { fixture_file_upload('spec/fixtures/dk.png') }
end
2015-09-11 14:41:01 +05:30
end
end