Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix ActionMailer test issues

* Don't depend so much no the message in a NameError
* Reset the delivery method properly
  • Loading branch information...
commit 1e4be20672252ac15a355589dd44bdd4623640c4 1 parent 34497c0
Evan Phoenix authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 actionmailer/test/old_base/mail_service_test.rb
View
6 actionmailer/test/old_base/mail_service_test.rb
@@ -340,6 +340,8 @@ def setup
@original_logger = TestMailer.logger
@recipient = 'test@localhost'
+
+ TestMailer.delivery_method = :test
end
def teardown
@@ -1191,6 +1193,6 @@ def test_should_still_raise_exception_with_expected_message_when_calling_an_unde
RespondToMailer.not_a_method
end
- assert_match(/undefined method.*not_a_method/, error.message)
+ assert_match(/method.*not_a_method/, error.message)
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.