diff options
author | claudiob <claudiob@gmail.com> | 2015-01-11 11:50:29 -0800 |
---|---|---|
committer | claudiob <claudiob@gmail.com> | 2015-01-11 11:50:29 -0800 |
commit | e4613c97c3760c5298ab19ec5120f93ac83f03b2 (patch) | |
tree | 29b4335a2e62f6042bcc84408f117cbfd127dd63 /actionmailer/test/i18n_with_controller_test.rb | |
parent | 7b47f422cf367db4918be76c417d9db592a04adf (diff) | |
download | rails-e4613c97c3760c5298ab19ec5120f93ac83f03b2.tar.gz rails-e4613c97c3760c5298ab19ec5120f93ac83f03b2.tar.bz2 rails-e4613c97c3760c5298ab19ec5120f93ac83f03b2.zip |
Fix assertion that was never run
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.
Diffstat (limited to 'actionmailer/test/i18n_with_controller_test.rb')
0 files changed, 0 insertions, 0 deletions