aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/test_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add MailDeliveryJob for unified mail deliveryGannon McGibbon2018-12-041-2/+2
| | | | | Add `MailDeliveryJob` for delivering both regular and parameterized mail. Deprecate using `DeliveryJob` and `Parameterized::DeliveryJob`.
* Deliver parameterized mail with DeliveryJobGannon McGibbon2018-11-221-9/+5
| | | | | Deliver parameterized mail with `ActionMailer::DeliveryJob` and remove `ActionMailer::Parameterized::DeliveryJob`.
* Fix ActionMailer assertion not working for mail defining delivery_job:Edouard CHIN2018-11-211-5/+14
| | | | | | | | | | | | | | | | | | | - 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.
* Fix docs of `assert_no_emails` [ci skip]bogdanvlviv2018-06-291-1/+1
| | | | `assert_no_emails` is shortcut for `assert_emails 0, &block`.
* Merge pull request #32427 from tjschuck/small_doc_fixesRyuta Kamizono2018-04-031-1/+1
|\ | | | | | | | | Small doc fixes [ci skip]
| * Small doc fixesT.J. Schuck2018-04-021-1/+1
| | | | | | | | [ci skip]
* | Doc fix added missing quoteMichael H2018-04-021-1/+1
|/
* Partly revert #32231bogdanvlviv2018-03-141-4/+2
| | | | | | | - Remove extra execution of `perform_enqueued_jobs` since it performs all enqueued jobs in the duration of the block. - Fix example of using `assert_emails` without block since we can't use enqueued jobs in this case.
* Perform email jobs in #assert_emailsGannon McGibbon2018-03-121-5/+7
| | | | Perform enqueued delivery jobs in #assert_emails and #assert_no_emails.
* Add assert_enqueued_email_with to ActionMailer::TestHelperMikkel Malmberg2017-09-271-0/+42
|
* Use frozen string literal in actionmailer/Kir Shatrov2017-07-231-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Make assert_enqueued_emails + assert_no_enqueued_emails consider ↵David Heinemeier Hansson2017-01-301-2/+2
| | | | | | parameterized delivery jobs Needed for testing of parameterized mailers
* applies new string literal convention in actionmailer/libXavier Noria2016-08-061-1/+1
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Fixed wording in Assertion docs, changed ‘Assert’ -> ‘Asserts’Ronak Jangir2015-10-071-1/+1
|
* Add missing punctuation mark to all ActionMailer docs [ci skip]amitkumarsuroliya2015-09-281-1/+1
|
* `assert_emails` in block form use the given number as expected valueyuuji.yaginuma2015-05-091-1/+1
|
* Add assert_enqueued_emails and assert_no_enqueued_emailsGeorge Claghorn2015-01-081-0/+51
|
* Updated rdoc / guides / release notes related to ActiveJob / ActionMailerCristian Bica2014-08-201-6/+6
|
* Use "Action Mailer" as canonical name in documentation [ci skip]Zachary Scott2014-05-261-1/+1
| | | | | See also: https://github.com/rails/rails/commit/3a297f8db75b172882bb3c2f9440d0c7365b8b11#commitcomment-6451708
* Add description of ActionMailer::TestHelper module [ci skip]Zachary Scott2014-05-261-0/+2
|
* deliver_ is an old APIAkira Matsuda2013-01-041-6/+6
|
* update ActionMailer documentation [ci skip]Francesco Rodriguez2012-09-171-1/+2
|
* remove unnecessary AS::Concern usageSergey Nartimov2012-01-221-2/+0
|
* Move ActionMailer::TC to AV::TC::BehaviorDavid Chelimsky2010-06-121-8/+2
| | | | | | [#4843 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Handle some TODOs and deprecations.José Valim and Mikel Lindsaar2010-01-241-1/+0
|
* use autoload instead of explicit requires for ActionMailerJoshua Peek2008-11-231-0/+1
|
* Add assert_emails and assert_no_emails to test the number of emails ↵Jeremy Kemper2006-11-051-0/+67
delivered. Closes #6479. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de