DEV: Fix heisentest (ensure that user ID really does not exist).
This commit is contained in:
parent
5b84307774
commit
96b8710b39
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue