@@ -38,6 +38,7 @@
         allow(child_comment).to receive(:is_root?).and_return(false)
         allow(child_comment).to receive(:root_exists?).and_return(true)
         allow(child_comment).to receive(:root).and_return(root_comment)
+        allow(child_comment).to receive(:user).and_return(double(spam?: false))
         allow(Comment).to receive(:find_by).with(id: 1).and_return(child_comment)
 
         worker.perform(1)
@@ -54,6 +55,7 @@
         allow(root_comment).to receive(:update_columns)
         allow(root_comment).to receive(:is_root?).and_return(true)
         allow(root_comment).to receive(:root).and_return(root_comment)
+        allow(child_comment).to receive(:user).and_return(double(spam?: false))
         allow(Comment).to receive(:find_by).with(id: 1).and_return(root_comment)
 
         worker.perform(1)