mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
e4613c97c3
In order to run whether the `welcome` method of the ActionMailer::Base subclass raises an error, `message` must be called, otherwise the method is not executed at all. You could just replace with `def welcome; raise StandardError; end` and you would still see a passing test. This commit fixes the test so the assertion is actually executed, just like any other tests in the file, where `.message` is called. |
||
---|---|---|
.. | ||
fixtures | ||
mailers | ||
abstract_unit.rb | ||
assert_select_email_test.rb | ||
asset_host_test.rb | ||
base_test.rb | ||
delivery_methods_test.rb | ||
i18n_with_controller_test.rb | ||
log_subscriber_test.rb | ||
mail_helper_test.rb | ||
mail_layout_test.rb | ||
message_delivery_test.rb | ||
test_case_test.rb | ||
test_helper_test.rb | ||
url_test.rb |