A platform for community discussion. Free, open, simple.
DEV: Correct `reviewable_flagged_post` fabricator (#33515)
Alan Guo Xiang Tanc0450cb14ba6
diff --git a/spec/fabricators/reviewable_fabricator.rb b/spec/fabricators/reviewable_fabricator.rbindex f3a11cc7673..f7b1caf72b1 100644--- a/spec/fabricators/reviewable_fabricator.rb+++ b/spec/fabricators/reviewable_fabricator.rb@@ -99,8 +99,8 @@ Fabricator(:reviewable_flagged_post) dotarget_created_by { Fabricate(:user) }topictarget_type "Post"- target { Fabricate(:post) }- reviewable_scores { |p| [Fabricate.build(:reviewable_score, reviewable_id: p[:id])] }+ target { |attrs| Fabricate(:post, topic: attrs[:topic]) }+ reviewable_scores { |attrs| [Fabricate.build(:reviewable_score, reviewable_id: attrs[:id])] }endFabricator(:reviewable_user) do