fix for multi-used relations

This commit is contained in:
Dylan Knutson
2025-07-29 23:33:26 +00:00
parent 4ed1c558b9
commit 672b7eb5d8
13 changed files with 4781 additions and 268 deletions

View File

@@ -298,7 +298,13 @@ describe Domain::Fa::Job::FavsJob do
end
it "creates new FA post models and enqueues scans" do
p1 = Domain::Post::FaPost.create!(fa_id: fa_ids[0], creator: user)
p1 =
Domain::Post::FaPost
.create!(fa_id: fa_ids[0])
.tap do |p|
p.creator = user
p.save!
end
expect do perform_now(args) end.to change(
Domain::Post::FaPost,
:count,