aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/test_helper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Perform email jobs in #assert_emailsGannon McGibbon2018-03-121-0/+22
| | | | Perform enqueued delivery jobs in #assert_emails and #assert_no_emails.
* Fix tests on Mail 2.7Jeremy Daer2017-10-311-1/+1
| | | | | Reverts 4d96be1c27bd6faed957b197a461f18543acebf2 References #31026
* 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-0/+18
| | | | | | parameterized delivery jobs Needed for testing of parameterized mailers
* applies new string literal convention in actionmailer/testXavier Noria2016-08-061-5/+5
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* `assert_emails` in block form use the given number as expected valueyuuji.yaginuma2015-05-091-0/+11
|
* remove noise from AM testsAditya Kapoor2015-02-071-5/+16
|
* Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 ↵Vipul A M2015-02-031-1/+0
| | | | onwards.
* Add assert_enqueued_emails and assert_no_enqueued_emailsGeorge Claghorn2015-01-081-0/+47
|
* Deprecated .deliver / .deliver! to .deliver_now / .deliver_now!Cristian Bica2014-08-201-11/+11
|
* add test coverage for the action mailerDmitry Polushkin2014-07-041-0/+9
|
* Update actionmailer with new hash syntax.Kirill Nikitin2012-10-071-3/+3
|
* Deprecate the old mailer API that was not deprecated yet.José Valim2010-08-291-4/+3
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-12/+12
| | | | 's/[ \t]*$//' -i {} \;)
* Use better assertion methods for testingNeeraj Singh2010-05-191-2/+2
| | | | | | [#4645 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Moved test of QP into mailMikel Lindsaar2010-04-111-4/+0
|
* Removing quoting.rb, upgrade to 2.1.3.6, changing all utf-8 references to ↵Mikel Lindsaar2010-04-111-1/+1
| | | | UTF-8, updating tests where incorrect encoding
* Add new class delivery method API.José Valim and Mikel Lindsaar2010-01-241-12/+12
|
* Migrated over to Mail doing delivery.Mikel Lindsaar2010-01-161-1/+1
|
* Updating to Mail 1.5.0, including default values for all Message#field_name ↵Mikel Lindsaar2010-01-021-2/+2
| | | | methods, can access field objects by calling Message#[:field_name]
* Getting rid of some warnings in AM suite.José Valim2009-12-271-3/+3
|
* 131 tests, 309 assertions, 0 failures, 0 errorsMikel Lindsaar2009-11-221-4/+4
|
* Starting again on actionmailer integration with mailMikel Lindsaar2009-11-121-2/+2
|
* Make tests run without deprecation warning (just one left).José Valim2009-11-011-1/+3
|
* abstract all of the ActionMailer delivery methods into their own classes. ↵Matthew Rudy Jacobs2009-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | thereby the following are equivalent ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.delivery_method = ActionMailer::DeliveryMethod::Smtp we could equally set our own custom object as long as it provides the instance method :perform_delivery(mail) eg. class MySmsDeliveryMethod def perform_delivery(mail) Sms.send(mail['to'], mail['body']) end end MySmsMailer.delivery_method = MySmsDeliveryMethod.new Signed-off-by: José Valim <jose.valim@gmail.com>
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-081-4/+4
| | | | [#1617 state:resolved]
* Fixed RFC-2045 quoted-printable bug [#1421 state:committed]Alexey Mahotkin2008-11-201-1/+1
| | | | | | | | | | | | | | | http://www.faqs.org/rfcs/rfc2045.html says: may be represented by an "=" followed by a two digit hexadecimal representation of the octet's value. The digits of the hexadecimal alphabet, for this purpose, are "0123456789ABCDEF". Uppercase letters must be used; lowercase letters are not allowed. ActionMailer, however, used "=%02x" specification. Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Ruby 1.9 compat: check for minitest's assertion alsoJeremy Kemper2008-11-081-3/+3
|
* * Continue evolution toward ActiveSupport::TestCase and friends. #10679 ↵Jeremy Kemper2008-01-051-8/+2
| | | | | | | | | [Josh Peek] * TestCase: introduce declared setup and teardown callbacks. Pass a list of methods and an optional block to call before setup or after teardown. Setup callbacks are run in the order declared; teardown callbacks are run in reverse. [Jeremy Kemper] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that you don't have to call super in ActionMailer::TestCase#setup ↵David Heinemeier Hansson2008-01-031-0/+18
| | | | | | (closes #10406) [jamesgolick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce TestCase subclasses for testing rails applications allowing tests ↵Michael Koziarski2007-10-261-5/+30
| | | | | | to be DRY'd up a bit and to provide a path toward tidying up our monkeypatching of test/unit. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Increase mail delivery test coverage. Closes #8692.Jeremy Kemper2007-06-201-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7070 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add assert_emails and assert_no_emails to test the number of emails ↵Jeremy Kemper2006-11-051-0/+79
delivered. Closes #6479. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de