aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test
Commit message (Collapse)AuthorAgeFilesLines
* Explicit multipart messages respect :parts_orderNate Berkopec2012-11-191-21/+21
| | | | | | | | | As issue #7978, the order in which ActionMailer sends multipart messages could be unintentionally overwritten if a block is passed to the mail method. This changes the mail method such that :parts_order is always respected, regardless of whether a block is passed to mail.
* Revert "Support `Mailer.deliver_foo(*args)` as a synonym for ↵Jon Leighton2012-10-301-7/+0
| | | | | | | | | | | | `Mailer.foo(*args).deliver`." This reverts commit 7e0cf563639bc7508da381b1b8321c7a89be1aa8. Conflicts: actionmailer/CHANGELOG.md See discussion at https://github.com/rails/rails/commit/7e0cf563639bc7508da381b1b8321c7a89be1aa8#commitcomment-2075489
* Do not render views when mail() isn't called. (NullMail refactoring)Yves Senn2012-10-283-0/+10
|
* Update actionmailer with new hash syntax.Kirill Nikitin2012-10-0710-112/+112
|
* Support `Mailer.deliver_foo(*args)` as a synonym for ↵Jon Leighton2012-09-281-0/+7
| | | | | | | `Mailer.foo(*args).deliver`. This makes it easy to write e.g. `Mailer.expects(:deliver_foo)` when testing code that calls the mailer.
* Support mailer tests using spec DSLMike Moore2012-09-241-0/+144
| | | | | Improve how mailer tests to resolve mailers from the test name. Add tests for mailer tests using the minitest spec DSL.
* Register mailer tests for minitest's spec DSLMike Moore2012-09-241-0/+37
|
* Use synchronous queue by default. Separate queued message delivery jobs from ↵Jeremy Kemper2012-09-163-17/+8
| | | | the queued message wrappers so the queue itself needn't be marshaled (due to queue reference QueuedMessage).
* Move queue classes to ActiveSupportSantiago Pastorino2012-09-142-4/+4
|
* Allow users to configure the queue for the mailersRafael Mendonça França2012-09-121-8/+1
| | | | | | | | | | | | This allow the users to do: config.action_mailer.queue = MyQueue.new and class UsersMailer < ActionMailer::Base self.queue = MyQueue.new end
* Action Mailer async flag is true by default using a Synchronous implSantiago Pastorino2012-09-113-4/+12
|
* Allow delivery method options to be set per mail instanceAditya Sanghi2012-09-041-0/+39
|
* Added missing require. When performing rake test:isolated, test/base_test.rb ↵kennyj2012-08-291-0/+1
| | | | was break.
* Fix ActionMailer tests that depend on run orderFrancesco Rodriguez2012-08-231-5/+9
|
* Revert "Merge pull request #7202 from asanghi/perform_deliveries_in_mail"José Valim2012-08-071-13/+0
| | | | | | Reverting because it feels backward to specify a delivery to not be performed while the e-mail is being composed. It is simpler (and makes more sense) to delegate the responsibility to the calling code.
* allow perform deliveries to be set within mailer actionAditya Sanghi2012-07-301-0/+13
|
* Fix failing AM test due to missing templateCarlos Antonio da Silva2012-07-061-1/+1
|
* Introduce config.action_mailer.default_from=Robert Pankowecki2012-07-031-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | Allows to easily set :from, :replay_to, etc. options in config/application.rb using simple syntax: config.action_mailer.default_options = {from:"no-replay@example.org"} This was not possible using #default method because config.action_mailer.default(from: "no-replay@example.org") is interpreated as reader method and just returns nil. It would not call ActionMailer::Base.default method. The only way of calling this method from config/application.rb was to use the direct syntax which looks ugly in my opinion: config.assets.enabled = false config.assets.version = '1.0' config.encoding = "utf-8" config.action_mailer.default_url_options= { host:"example.org", protocol:"https" } ActionMailer::Base.default(from: "no-replay@example.org")
* Some final syntax fixesBrian Cardarella2012-06-241-2/+1
|
* Forcing the message sending is no longer necessaryBrian Cardarella2012-06-241-9/+0
|
* Support for custom queues on the mailerBrian Cardarella2012-06-231-5/+16
| | | | Credit goes to *Aaron Patterson* (tenderlove)
* Force message delivery despite asyncBrian Cardarella2012-06-231-0/+8
|
* Asynchronous ActionMailerBrian Cardarella2012-06-233-0/+18
| | | | | | | | Any ActionMailer class can be set to render and delier messages using the new Rails Queue. Some of this work was borrowed (with permission) from Nick Plante's (zapnap) reqsue_mailer gem.
* raise an error if no implicit mailer template could be foundDamien Mathieu2012-06-209-0/+7
|
* mailer can be anonymousSergey Nartimov2012-05-132-0/+14
| | | | closes #5970
* Remove useless load path modificationsSantiago Pastorino2012-05-111-3/+0
|
* No need to work around 1.8 warnings anymore.Marcelo Silveira2012-05-031-13/+1
|
* Clean up some straggling build failuresJose and Yehuda2012-04-242-3/+3
|
* Add ability to define callbacks in ActionMailer using ↵Justin S. Leitgeb2012-03-111-0/+46
| | | | | | | | | | | | | | | | | AbstractController::Callbacks. Prior to this commit, there isn't a good way of adding things like default inline attachments to an email. This Stack Overflow thread shows people using hooks like the 'default' method in ActionMailer::Base to call a Proc for message configuration: http://stackoverflow.com/questions/5113121/rails-use-same-attachment-for-all-emails-using-layout This has the unintended side effect of setting a message header, so it's not a good solution. This pull request adds support for message modifications by including AbstractController:Callbacks in ActionMailer::Base. It includes tests and documentation for the functionality provided by including this module.
* Fix broken testsSantiago Pastorino2012-03-101-0/+2
|
* Fix actionmailer tests broken by #4751a69Justin S. Leitgeb2012-03-101-1/+1
|
* Fix AM format_paragraph helper method if a first word is longAlexey Vakhov2012-02-151-0/+13
|
* Cosmetic fixes in block_format AM helper method + testAlexey Vakhov2012-02-151-0/+31
|
* require minitest rather than test/unitAaron Patterson2012-01-061-1/+1
|
* test cases should inherit from AS::TestCaseAaron Patterson2012-01-052-2/+2
|
* remove checks for encodings availabilitySergey Nartimov2011-12-251-2/+2
|
* deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-241-8/+5
|
* normalize arg for ActionMailer::TestCase tests methodAlexey Vakhov2011-10-031-0/+28
|
* Get rid of update_details in favor of passing details to find_template.José Valim2011-09-221-1/+1
|
* fixed test_deliver_is_notified need base_mailerArun Agrawal2011-05-251-0/+1
|
* Removed deprecated ActionMailer API and related testsJosh Kalderimis2011-05-245-1324/+3
|
* Updating to use Mail v2.3.0Mikel Lindsaar2011-04-261-5/+5
| | | | | | Need to move the require of mail in test/abstract_unit to be after active support to make sure we use ActiveSupport multibyte handlers, otherwise, Mail will load its internal multibyte compat
* remove AM delegating register_observer and register_interceptor to Mail and ↵Josh Kalderimis2011-04-041-0/+40
| | | | | | instead implement smarter versions allowing for string class names, also added proper Railtie support with tests. Signed-off-by: José Valim <jose.valim@gmail.com>
* publicise ActionMailer::MailHelper.format_paragraphDiego Carrion2011-03-091-0/+13
| | | | | | [#6550 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fixed indentation in actionmailer base_test [#6538 state:committed]Dalibor Nasevic2011-03-071-2/+2
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* No need of instance variableDalibor Nasevic2011-03-021-3/+3
| | | | | | [#6502 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fixed typos in asset_host_testDalibor Nasevic2011-03-021-2/+2
| | | | | | [#6501 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* removing text-format in favor of a more simple solutionAaron Patterson2011-02-091-2/+1
|
* Solve SystemStackError when changing locale inside ActionMailer [#5329 ↵José Valim2011-01-191-10/+6
| | | | state:resolved]
* Added a testcase for bug [#5329]Frank Fischer2011-01-192-0/+54
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>