mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 22:20:10 +08:00
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) }
|
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
|
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([])
|
expect(ActionMailer::Base.deliveries).to eq([])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user