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.
8 lines
131 B
Ruby
8 lines
131 B
Ruby
FactoryBot.define do
|
|
factory(:post_flag) do
|
|
creator
|
|
post { build(:post, is_flagged: true) }
|
|
reason {"xxx"}
|
|
end
|
|
end
|