diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2014-08-14 23:47:38 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2014-08-17 23:10:08 +0000 |
commit | 299d1f262629aaa25e070db6ae15438e95137054 (patch) | |
tree | 39ae4dd82b6d178d33b543c82e2725531ff26adb /actionmailer/test | |
parent | 6a2ca149fda46c8a36d80e0f95affb1b6de11aae (diff) | |
download | rails-299d1f262629aaa25e070db6ae15438e95137054.tar.gz rails-299d1f262629aaa25e070db6ae15438e95137054.tar.bz2 rails-299d1f262629aaa25e070db6ae15438e95137054.zip |
[ActionMailer] Rename ActionMailer::DelayedDeliveryJob to ActionMailer::DeliveryJob
Diffstat (limited to 'actionmailer/test')
-rw-r--r-- | actionmailer/test/message_delivery_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionmailer/test/message_delivery_test.rb b/actionmailer/test/message_delivery_test.rb index 49958081f5..a097d0e84d 100644 --- a/actionmailer/test/message_delivery_test.rb +++ b/actionmailer/test/message_delivery_test.rb @@ -51,21 +51,21 @@ class MessageDeliveryTest < ActiveSupport::TestCase end test 'should enqueue the email with :deliver delivery method' do - ret = ActionMailer::DelayedDeliveryJob.stub :enqueue, ->(*args){ args } do + ret = ActionMailer::DeliveryJob.stub :enqueue, ->(*args){ args } do @mail.deliver_later end assert_equal ['DelayedMailer', 'test_message', 'deliver', 1, 2, 3], ret end test 'should enqueue the email with :deliver! delivery method' do - ret = ActionMailer::DelayedDeliveryJob.stub :enqueue, ->(*args){ args } do + ret = ActionMailer::DeliveryJob.stub :enqueue, ->(*args){ args } do @mail.deliver_later! end assert_equal ['DelayedMailer', 'test_message', 'deliver!', 1, 2, 3], ret end test 'should enqueue a delivery with a delay' do - ret = ActionMailer::DelayedDeliveryJob.stub :enqueue_in, ->(*args){ args } do + ret = ActionMailer::DeliveryJob.stub :enqueue_in, ->(*args){ args } do @mail.deliver_later in: 600 end assert_equal [600, 'DelayedMailer', 'test_message', 'deliver', 1, 2, 3], ret @@ -73,7 +73,7 @@ class MessageDeliveryTest < ActiveSupport::TestCase test 'should enqueue a delivery at a specific time' do later_time = Time.now.to_i + 3600 - ret = ActionMailer::DelayedDeliveryJob.stub :enqueue_at, ->(*args){ args } do + ret = ActionMailer::DeliveryJob.stub :enqueue_at, ->(*args){ args } do @mail.deliver_later at: later_time end assert_equal [later_time, 'DelayedMailer', 'test_message', 'deliver', 1, 2, 3], ret |