diff options
author | Andrew White <andrew.white@unboxed.co> | 2017-03-15 14:52:42 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2017-03-15 14:56:27 +0000 |
commit | c7135d2c8ebf2263ebb82dfe1723c7435676e11f (patch) | |
tree | fb553891540efa538da3964669080516edcb2ece /actionmailer/test | |
parent | a91ea1d51048342d13fc73f9b09ce4cfd086bb34 (diff) | |
download | rails-c7135d2c8ebf2263ebb82dfe1723c7435676e11f.tar.gz rails-c7135d2c8ebf2263ebb82dfe1723c7435676e11f.tar.bz2 rails-c7135d2c8ebf2263ebb82dfe1723c7435676e11f.zip |
Use better duration aliases in tests
Diffstat (limited to 'actionmailer/test')
-rw-r--r-- | actionmailer/test/message_delivery_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/test/message_delivery_test.rb b/actionmailer/test/message_delivery_test.rb index e3d15816d4..c0683be94d 100644 --- a/actionmailer/test/message_delivery_test.rb +++ b/actionmailer/test/message_delivery_test.rb @@ -76,8 +76,8 @@ class MessageDeliveryTest < ActiveSupport::TestCase test "should enqueue a delivery with a delay" do travel_to Time.new(2004, 11, 24, 01, 04, 44) do - assert_performed_with(job: ActionMailer::DeliveryJob, at: Time.current + 600.seconds, args: ["DelayedMailer", "test_message", "deliver_now", 1, 2, 3]) do - @mail.deliver_later wait: 600.seconds + assert_performed_with(job: ActionMailer::DeliveryJob, at: Time.current + 10.minutes, args: ["DelayedMailer", "test_message", "deliver_now", 1, 2, 3]) do + @mail.deliver_later wait: 10.minutes end end end |