blob: 3de0af32252bd6ba30c9ec3002cf76c1d91707dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
require_relative '../../test_helper'
class ActionMailroom::InboundEmail::IncinerationTest < ActiveSupport::TestCase
test "incinerate emails 30 days after they have been processed" do
freeze_time
assert_enqueued_with job: ActionMailroom::InboundEmail::IncinerationJob, at: 30.days.from_now do
create_inbound_email_from_fixture("welcome.eml").delivered!
end
end
end
|