mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 05:45:25 +08:00
DEV: remove a deprecation notice regarding hard-to-serialize (#31238)
arguments being passed to background jobs.
This commit is contained in:
parent
85e82e7be3
commit
541f4ec103
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user