Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing actionmailer tests for CI

  • Loading branch information...
commit bb55bbd207836d6d2eb1aa3dff1170f81a60131f 1 parent a4c3289
Mikel Lindsaar mikel authored Yehuda Katz committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  actionmailer/test/base_test.rb
3  actionmailer/test/base_test.rb
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.