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