Permalink
Browse files

Fixing actionmailer tests for CI

  • Loading branch information...
1 parent a4c3289 commit bb55bbd207836d6d2eb1aa3dff1170f81a60131f @mikel mikel committed with Yehuda Katz Feb 7, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionmailer/test/base_test.rb
View
3 actionmailer/test/base_test.rb
@@ -461,7 +461,8 @@ def different_layout(layout_name='')
assert_instance_of Mail::Message, mail
end
- test "calling deliver on the action should increment the deliveries collection" do
+ test "calling deliver on the action should increment the deliveries collection if using the test mailer" do
+ BaseMailer.delivery_method = :test
BaseMailer.deliveries.clear
BaseMailer.welcome.deliver
assert_equal(1, BaseMailer.deliveries.length)

0 comments on commit bb55bbd

Please sign in to comment.