Update test factories to run without input of instances

This commit is contained in:
BrokenEagle
2020-07-19 04:01:26 +00:00
parent e34e7b0d90
commit 40e6c3d77c
8 changed files with 11 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
FactoryBot.define do
factory(:post_disapproval) do
user
post
user factory: :moderator_user
post factory: :post, is_pending: true
reason { PostDisapproval::REASONS.sample }
message { FFaker::Lorem.sentence }
end