diff options
author | George Claghorn <george@basecamp.com> | 2018-10-17 10:38:51 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-17 10:38:51 -0400 |
commit | 8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437 (patch) | |
tree | 040e685506501fcc5ddf185748a34d6497ab3b0e /test | |
parent | 47445511862a4c9979fb46889011edf585391091 (diff) | |
download | rails-8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437.tar.gz rails-8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437.tar.bz2 rails-8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437.zip |
Simplify incineration
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/inbound_email/incineration_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/inbound_email/incineration_test.rb b/test/unit/inbound_email/incineration_test.rb index 72378df05a..a3267afac9 100644 --- a/test/unit/inbound_email/incineration_test.rb +++ b/test/unit/inbound_email/incineration_test.rb @@ -4,7 +4,7 @@ class ActionMailbox::InboundEmail::IncinerationTest < ActiveSupport::TestCase test "incinerating 30 days after delivery" do freeze_time - assert_enqueued_with job: ActionMailbox::InboundEmail::IncinerationJob, at: 30.days.from_now do + assert_enqueued_with job: ActionMailbox::IncinerationJob, at: 30.days.from_now do create_inbound_email_from_fixture("welcome.eml").delivered! end end @@ -12,7 +12,7 @@ class ActionMailbox::InboundEmail::IncinerationTest < ActiveSupport::TestCase test "incinerating 30 days after bounce" do freeze_time - assert_enqueued_with job: ActionMailbox::InboundEmail::IncinerationJob, at: 30.days.from_now do + assert_enqueued_with job: ActionMailbox::IncinerationJob, at: 30.days.from_now do create_inbound_email_from_fixture("welcome.eml").bounced! end end @@ -20,7 +20,7 @@ class ActionMailbox::InboundEmail::IncinerationTest < ActiveSupport::TestCase test "incinerating 30 days after failure" do freeze_time - assert_enqueued_with job: ActionMailbox::InboundEmail::IncinerationJob, at: 30.days.from_now do + assert_enqueued_with job: ActionMailbox::IncinerationJob, at: 30.days.from_now do create_inbound_email_from_fixture("welcome.eml").failed! end end |