• E
    Fix ActionMailer assertion not working for mail defining delivery_job: · e139a3ce
    Edouard CHIN 提交于
    - 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.
    e139a3ce
可在Tags中查看这些版本中当前仓库的状态.
CHANGELOG.md 2.0 KB