DEV: remove a deprecation notice regarding hard-to-serialize (#31238)

arguments being passed to background jobs.
This commit is contained in:
Régis Hanol 2025-02-09 15:10:52 +01:00 committed by GitHub
parent 85e82e7be3
commit 541f4ec103
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3178,7 +3178,7 @@ RSpec.describe PostMover do
fab!(:destination_topic) { Fabricate(:topic) }
it "calls enqueue jobs for PostCreator when @post_creator is present" do
post_mover = PostMover.new(original_topic, admin, [post_1, post_2])
post_mover = PostMover.new(original_topic, admin, [post_1, post_2].map(&:id))
PostCreator.any_instance.expects(:enqueue_jobs).once
@ -3193,7 +3193,7 @@ RSpec.describe PostMover do
plugin_instance = Plugin::Instance.new
plugin_instance.register_modifier(:post_mover_enqueue_post_creator_jobs, &modifier_block)
post_mover = PostMover.new(original_topic, admin, [post_1, post_2])
post_mover = PostMover.new(original_topic, admin, [post_1, post_2].map(&:id))
PostCreator.any_instance.expects(:enqueue_jobs).never