A platform for community discussion. Free, open, simple.
DEV: Fix heisentest (ensure that user ID really does not exist).
Dan Ungureanu96b8710b392c
diff --git a/spec/jobs/user_email_spec.rb b/spec/jobs/user_email_spec.rbindex 39844fdb173..263adba7e3d 100644--- a/spec/jobs/user_email_spec.rb+++ b/spec/jobs/user_email_spec.rb@@ -30,7 +30,7 @@ describe Jobs::UserEmail dofab!(: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