mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
FIX: wasn't unfreezing time in email processor spec
This commit is contained in:
parent
d792e81372
commit
640ced004d
@ -44,13 +44,14 @@ describe Email::Processor do
|
||||
Email::Processor.process!(mail2)
|
||||
}.to change { EmailLog.count }.by(0)
|
||||
|
||||
Timecop.freeze(Date.today + 1)
|
||||
key = "rejection_email:#{[from]}:email_reject_empty:#{Date.today}"
|
||||
$redis.expire(key, 0)
|
||||
Timecop.freeze(Date.today + 1) do
|
||||
key = "rejection_email:#{[from]}:email_reject_empty:#{Date.today}"
|
||||
$redis.expire(key, 0)
|
||||
|
||||
expect {
|
||||
Email::Processor.process!(mail3)
|
||||
}.to change { EmailLog.count }.by(1)
|
||||
expect {
|
||||
Email::Processor.process!(mail3)
|
||||
}.to change { EmailLog.count }.by(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user