DEV: Remove Job stub.
This commit is contained in:
parent
b1b8c37e62
commit
b9b5527c63
|
@ -1228,9 +1228,10 @@ describe CookedPostProcessor do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "works only on new posts" do
|
it "works only on new posts" do
|
||||||
|
SiteSetting.queue_jobs = false
|
||||||
|
|
||||||
hidden = Fabricate(:post, topic: topic, hidden: true, raw: "this is the second post after")
|
hidden = Fabricate(:post, topic: topic, hidden: true, raw: "this is the second post after")
|
||||||
small_action = Fabricate(:post, topic: topic, post_type: Post.types[:small_action])
|
small_action = Fabricate(:post, topic: topic, post_type: Post.types[:small_action])
|
||||||
Jobs.stubs(:enqueue) { |job, args| CookedPostProcessor.new(reply).post_process(new_post: args[:new_post]) if job == :process_post }
|
|
||||||
|
|
||||||
reply = PostCreator.create!(topic.user, topic_id: topic.id, raw: raw)
|
reply = PostCreator.create!(topic.user, topic_id: topic.id, raw: raw)
|
||||||
CookedPostProcessor.new(reply).post_process
|
CookedPostProcessor.new(reply).post_process
|
||||||
|
|
Loading…
Reference in New Issue