aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/delivery_methods_test.rb
diff options
context:
space:
mode:
authorJosé Valim and Mikel Lindsaar <pair@programming.com>2010-01-25 21:47:03 +1100
committerJosé Valim and Mikel Lindsaar <pair@programming.com>2010-01-25 21:47:03 +1100
commitace74974cf3575bbd3bf7ff4d8a83c3100fd22a9 (patch)
treeee3f53d8257623cd8544eee40528ddea74096a33 /actionmailer/test/delivery_methods_test.rb
parent4240369a4399b944a0652807c545ffe99d7fb0cd (diff)
downloadrails-ace74974cf3575bbd3bf7ff4d8a83c3100fd22a9.tar.gz
rails-ace74974cf3575bbd3bf7ff4d8a83c3100fd22a9.tar.bz2
rails-ace74974cf3575bbd3bf7ff4d8a83c3100fd22a9.zip
Got AM working with Mail yield on delivery_handler and updated tests
Diffstat (limited to 'actionmailer/test/delivery_methods_test.rb')
-rw-r--r--actionmailer/test/delivery_methods_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/test/delivery_methods_test.rb b/actionmailer/test/delivery_methods_test.rb
index e70e8acd9b..4907ca0903 100644
--- a/actionmailer/test/delivery_methods_test.rb
+++ b/actionmailer/test/delivery_methods_test.rb
@@ -159,12 +159,12 @@ class MailDeliveryTest < ActiveSupport::TestCase
end
end
- test "increments the deliveries collection on bogus deliveries if set to ignore" do
+ test "does not increment the deliveries collection on bogus deliveries" do
DeliveryMailer.delivery_method = BogusDelivery
DeliveryMailer.raise_delivery_errors = false
DeliveryMailer.deliveries.clear
DeliveryMailer.welcome.deliver
- assert_equal(1, DeliveryMailer.deliveries.length)
+ assert_equal(0, DeliveryMailer.deliveries.length)
end
end \ No newline at end of file