Skip to content
This repository
Browse code

Fixing actionmailer tests for CI

  • Loading branch information...
commit bb55bbd207836d6d2eb1aa3dff1170f81a60131f 1 parent a4c3289
Mikel Lindsaar authored February 07, 2010 Yehuda Katz committed February 06, 2010

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  actionmailer/test/base_test.rb
3  actionmailer/test/base_test.rb
@@ -461,7 +461,8 @@ def different_layout(layout_name='')
461 461
     assert_instance_of Mail::Message, mail
462 462
   end
463 463
 
464  
-  test "calling deliver on the action should increment the deliveries collection" do
  464
+  test "calling deliver on the action should increment the deliveries collection if using the test mailer" do
  465
+    BaseMailer.delivery_method = :test
465 466
     BaseMailer.deliveries.clear
466 467
     BaseMailer.welcome.deliver
467 468
     assert_equal(1, BaseMailer.deliveries.length)

0 notes on commit bb55bbd

Please sign in to comment.
Something went wrong with that request. Please try again.