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
Edouard CHIN e139a3ce13 Fix ActionMailer assertion not working for mail defining delivery_job:
- If a Mail defines a custom delivery_job, all ActionMailer assertion
  helper (assert_emails, assert_enqueued_emails ...) wouldn't work.

  ```ruby
    MyMailer < ApplicationMailer
      self.delivery_job = MyJob
    end

    # This assertion will fail
    assert_emails(1) do
      MyMailer.my_mail.deliver_later
    end

  This PR leverage the new ActiveJob feature that accepts Procs for the
  `only` keyword and check if the delivery job is one of ActionMailer
   registered ones.
2018-11-21 23:17:04 +01:00
..
fixtures Expand on Action Mailer Fragment caching tests 2016-04-17 23:16:09 +05:30
mailers Merge pull request #22534 from evopark/master 2018-11-19 19:23:44 -05:00
abstract_unit.rb Remove private def 2018-09-23 21:27:44 +05:30
assert_select_email_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
asset_host_test.rb Do not generate default alt text in image tags 2017-08-17 16:13:15 -04:00
base_test.rb Merge pull request #22534 from evopark/master 2018-11-19 19:23:44 -05:00
caching_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
delivery_methods_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
i18n_with_controller_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
log_subscriber_test.rb Add perform_deliveries to a payload of deliver.action_mailer notification. 2018-09-09 20:17:36 +09:00
mail_helper_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
mail_layout_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
message_delivery_test.rb Enable Layout/SpaceBeforeComma rubocop rule, and fixed more 2017-12-12 20:00:50 +09:00
parameterized_test.rb Parameterized mailers can configure delivery job 2018-10-05 17:02:40 +01:00
test_case_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
test_helper_test.rb Fix ActionMailer assertion not working for mail defining delivery_job: 2018-11-21 23:17:04 +01:00
url_test.rb This patch removes deprecated catch-all routes from AM 2018-09-24 16:12:44 -07:00