diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-14 00:09:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-14 00:09:09 +0300 |
commit | 04cc87ee46c1c0b6b4eb7df964b3115dd2578877 (patch) | |
tree | 2c64b0e21804fc0981a2142eb83a0b73d85fbcda /spec/factories | |
parent | 4a064b8dc0bf350b1b3000698042b49113e758d1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/abuse/event.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/factories/abuse/event.rb b/spec/factories/abuse/event.rb new file mode 100644 index 00000000000..4bd1b97410e --- /dev/null +++ b/spec/factories/abuse/event.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :abuse_event, class: 'Abuse::Event' do + user + category { :spam } + source { :spamcheck } + + trait(:with_abuse_report) do + abuse_report + end + end +end |