fix for multi-used relations
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user