Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix the obvious typos detected by github.com/client9/misspell | Kazuhiro Sera | 2018-08-08 | 1 | -1/+1 |
| | |||||
* | Allow call `assert_enqueued_with` and `assert_enqueued_email_with` with no block | bogdanvlviv | 2018-06-29 | 1 | -2/+29 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example of `assert_enqueued_with` with no block ```ruby def test_assert_enqueued_with MyJob.perform_later(1,2,3) assert_enqueued_with(job: MyJob, args: [1,2,3], queue: 'low') MyJob.set(wait_until: Date.tomorrow.noon).perform_later assert_enqueued_with(job: MyJob, at: Date.tomorrow.noon) end ``` Example of `assert_enqueued_email_with` with no block: ```ruby def test_email ContactMailer.welcome.deliver_later assert_enqueued_email_with ContactMailer, :welcome end def test_email_with_arguments ContactMailer.welcome("Hello", "Goodbye").deliver_later assert_enqueued_email_with ContactMailer, :welcome, args: ["Hello", "Goodbye"] end ``` Related to #33243 | ||||
* | Perform email jobs in #assert_emails | Gannon McGibbon | 2018-03-12 | 1 | -0/+22 |
| | | | | Perform enqueued delivery jobs in #assert_emails and #assert_no_emails. | ||||
* | Fix tests on Mail 2.7 | Jeremy Daer | 2017-10-31 | 1 | -1/+1 |
| | | | | | Reverts 4d96be1c27bd6faed957b197a461f18543acebf2 References #31026 | ||||
* | Add assert_enqueued_email_with to ActionMailer::TestHelper | Mikkel Malmberg | 2017-09-27 | 1 | -0/+42 |
| | |||||
* | Use frozen string literal in actionmailer/ | Kir Shatrov | 2017-07-23 | 1 | -0/+2 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | Make assert_enqueued_emails + assert_no_enqueued_emails consider ↵ | David Heinemeier Hansson | 2017-01-30 | 1 | -0/+18 |
| | | | | | | parameterized delivery jobs Needed for testing of parameterized mailers | ||||
* | applies new string literal convention in actionmailer/test | Xavier Noria | 2016-08-06 | 1 | -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 value | yuuji.yaginuma | 2015-05-09 | 1 | -0/+11 |
| | |||||
* | remove noise from AM tests | Aditya Kapoor | 2015-02-07 | 1 | -5/+16 |
| | |||||
* | Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 ↵ | Vipul A M | 2015-02-03 | 1 | -1/+0 |
| | | | | onwards. | ||||
* | Add assert_enqueued_emails and assert_no_enqueued_emails | George Claghorn | 2015-01-08 | 1 | -0/+47 |
| | |||||
* | Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! | Cristian Bica | 2014-08-20 | 1 | -11/+11 |
| | |||||
* | add test coverage for the action mailer | Dmitry Polushkin | 2014-07-04 | 1 | -0/+9 |
| | |||||
* | Update actionmailer with new hash syntax. | Kirill Nikitin | 2012-10-07 | 1 | -3/+3 |
| | |||||
* | Deprecate the old mailer API that was not deprecated yet. | José Valim | 2010-08-29 | 1 | -4/+3 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -12/+12 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Use better assertion methods for testing | Neeraj Singh | 2010-05-19 | 1 | -2/+2 |
| | | | | | | [#4645 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Moved test of QP into mail | Mikel Lindsaar | 2010-04-11 | 1 | -4/+0 |
| | |||||
* | Removing quoting.rb, upgrade to 2.1.3.6, changing all utf-8 references to ↵ | Mikel Lindsaar | 2010-04-11 | 1 | -1/+1 |
| | | | | UTF-8, updating tests where incorrect encoding | ||||
* | Add new class delivery method API. | José Valim and Mikel Lindsaar | 2010-01-24 | 1 | -12/+12 |
| | |||||
* | Migrated over to Mail doing delivery. | Mikel Lindsaar | 2010-01-16 | 1 | -1/+1 |
| | |||||
* | Updating to Mail 1.5.0, including default values for all Message#field_name ↵ | Mikel Lindsaar | 2010-01-02 | 1 | -2/+2 |
| | | | | methods, can access field objects by calling Message#[:field_name] | ||||
* | Getting rid of some warnings in AM suite. | José Valim | 2009-12-27 | 1 | -3/+3 |
| | |||||
* | 131 tests, 309 assertions, 0 failures, 0 errors | Mikel Lindsaar | 2009-11-22 | 1 | -4/+4 |
| | |||||
* | Starting again on actionmailer integration with mail | Mikel Lindsaar | 2009-11-12 | 1 | -2/+2 |
| | |||||
* | Make tests run without deprecation warning (just one left). | José Valim | 2009-11-01 | 1 | -1/+3 |
| | |||||
* | abstract all of the ActionMailer delivery methods into their own classes. ↵ | Matthew Rudy Jacobs | 2009-11-01 | 1 | -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 Kemper | 2009-03-08 | 1 | -4/+4 |
| | | | | [#1617 state:resolved] | ||||
* | Fixed RFC-2045 quoted-printable bug [#1421 state:committed] | Alexey Mahotkin | 2008-11-20 | 1 | -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 also | Jeremy Kemper | 2008-11-08 | 1 | -3/+3 |
| | |||||
* | * Continue evolution toward ActiveSupport::TestCase and friends. #10679 ↵ | Jeremy Kemper | 2008-01-05 | 1 | -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 path | Jeremy Kemper | 2008-01-05 | 1 | -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 Hansson | 2008-01-03 | 1 | -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 Koziarski | 2007-10-26 | 1 | -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 Kemper | 2007-06-20 | 1 | -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 Kemper | 2006-11-05 | 1 | -0/+79 |
delivered. Closes #6479. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |