1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test
Rafael Mendonça França ecb1981bfd Template lookup now respect default locale and I18n fallbacks.
Given the following templates:

    mailer/demo.html.erb
    mailer/demo.en.html.erb
    mailer/demo.pt.html.erb

Before this change for a locale that doesn't have its related file
the `mailer/demo.html.erb` will
be rendered even if `en` is the default locale.

Now `mailer/demo.en.html.erb` has precedence over the file without
 locale.

Also, it is possible to give a fallback.

    mailer/demo.pt.html.erb
    mailer/demo.pt-BR.html.erb

So if the locale is `pt-PT`, `mailer/demo.pt.html.erb` will be
 rendered given the right I18n fallback configuration.

Fixes #11884.
2014-12-29 23:48:35 -03:00
..
fixtures Template lookup now respect default locale and I18n fallbacks. 2014-12-29 23:48:35 -03:00
mailers Added ActionMailer::DeliverLater 2014-08-13 11:36:32 +00:00
abstract_unit.rb Default to sorting user's test cases for now 2014-09-08 05:32:16 -07:00
assert_select_email_test.rb Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! 2014-08-20 17:48:34 +03:00
asset_host_test.rb fix tests on action_mailer 2014-10-07 17:40:59 -05:00
base_test.rb Template lookup now respect default locale and I18n fallbacks. 2014-12-29 23:48:35 -03:00
delivery_methods_test.rb Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! 2014-08-20 17:48:34 +03:00
i18n_with_controller_test.rb Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! 2014-08-20 17:48:34 +03:00
log_subscriber_test.rb Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! 2014-08-20 17:48:34 +03:00
mail_helper_test.rb Update actionmailer with new hash syntax. 2012-10-07 21:54:14 +04:00
mail_layout_test.rb Remove unnecessary setup and teardown. 2014-05-13 15:03:53 +08:00
message_delivery_test.rb Rename remaining :in / :at to :wait / :wait_until 2014-09-04 08:08:06 +03:00
test_case_test.rb [ActionMailer] Rename test/test_test to test/test_case_test 2014-08-30 14:38:33 +00:00
test_helper_test.rb Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! 2014-08-20 17:48:34 +03:00
url_test.rb let the AM test suite pass in 1.9 2014-11-24 22:03:54 -08:00