DEV: Fix heisentest (ensure that user ID really does not exist).

DEV: Fix heisentest (ensure that user ID really does not exist).

diff --git a/spec/jobs/user_email_spec.rb b/spec/jobs/user_email_spec.rb
index 39844fdb17..263adba7e3 100644
--- a/spec/jobs/user_email_spec.rb
+++ b/spec/jobs/user_email_spec.rb
@@ -30,7 +30,7 @@ describe Jobs::UserEmail do
     fab!(:popular_topic) { Fabricate(:topic, user: Fabricate(:admin), created_at: 1.hour.ago) }
 
     it "doesn't call the mailer when the user is missing" do
-      Jobs::UserEmail.new.execute(type: :digest, user_id: 1234)
+      Jobs::UserEmail.new.execute(type: :digest, user_id: User.last.id + 10000)
       expect(ActionMailer::Base.deliveries).to eq([])
     end

GitHub sha: 96b8710b

2 Likes