Files
danbooru/test/factories/post_flag.rb
evazion 718c4d121b posts: fix double deletion bug.
Fix a bug where, if a user a was deleting a post and they accidentally
clicked the delete button twice, it could create two flags.
2022-09-24 23:41:14 -05:00

8 lines
113 B
Ruby

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