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

This commit is contained in:
Dan Ungureanu 2019-10-14 12:25:31 +03:00
parent 5b84307774
commit 96b8710b39
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84
1 changed files with 1 additions and 1 deletions

View File

@ -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