FIX: wasn't unfreezing time in email processor spec
This commit is contained in:
parent
d792e81372
commit
640ced004d
|
@ -44,7 +44,7 @@ describe Email::Processor do
|
|||
Email::Processor.process!(mail2)
|
||||
}.to change { EmailLog.count }.by(0)
|
||||
|
||||
Timecop.freeze(Date.today + 1)
|
||||
Timecop.freeze(Date.today + 1) do
|
||||
key = "rejection_email:#{[from]}:email_reject_empty:#{Date.today}"
|
||||
$redis.expire(key, 0)
|
||||
|
||||
|
@ -53,6 +53,7 @@ describe Email::Processor do
|
|||
}.to change { EmailLog.count }.by(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "unrecognized error" do
|
||||
|
||||
|
|
Loading…
Reference in New Issue