Files
danbooru/test/factories/post_flag.rb
evazion 3a17b5a13e flags/appeals: replace is_resolved flag with statuses.
Replace references to the `is_resolved` field with the `status` field.
Post flags were marked as resolved when a post was approved (but not
when the post was deleted because it went unapproved). The status field
supercedes the resolved field.
2020-08-07 19:24:57 -05:00

8 lines
131 B
Ruby

FactoryBot.define do
factory(:post_flag) do
creator
post { build(:post, is_flagged: true) }
reason {"xxx"}
end
end