summaryrefslogtreecommitdiffstats
path: root/test/unit/mailer_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Sort issues by due date in email reminders (#29771).Go MAEDA2018-11-061-0/+21
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17624 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove trailing whitespaces from test/unit/mailer_test.rbGo MAEDA2018-11-061-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17623 e93f8b46-1217-0410-a6f0-8f06a7374b81
* #last_email already asserts that mail is not nil.Jean-Philippe Lang2018-10-101-11/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17592 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Journal must be saved.Jean-Philippe Lang2018-10-101-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17589 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send emails asynchronously (#26791).Jean-Philippe Lang2018-10-101-174/+78
| | | | | | Custom async_* delivery methods are removed in favor of ActiveJob (Async by default). git-svn-id: http://svn.redmine.org/redmine/trunk@17588 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that test_email raises an error with #deliver_later (#26791).Jean-Philippe Lang2018-10-061-0/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17587 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send individual emails for each mail recipient (#26791).Jean-Philippe Lang2018-10-061-5/+9
| | | | | | | | | | | | | | | | | | | | | | | We are creating multipe mails per class notification event, one per recipient, wrapped in a Mailer::MultiMessage object to send them all at once. We keep the existing interface of all class methods intended to be used by external code the same as they were before, with one exception: We provide additional recipient addresses in options[:recipients] for Mailer.security_notification. Since the first-class recipients have to be users to render individual mails for them, additional recipient addresses have to be provided with some other channel. By providing additional recipients in options[:recipients], we can solve the use-case for address change notifications for users, which probably is the only real use-case for having to use a plain email address instead of a User as a notification recipient. Patch by Holger Just and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17583 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes repository routes without repository_id (#26522).Jean-Philippe Lang2018-06-161-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17386 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Security notification on password recovery is empty (#28302).Jean-Philippe Lang2018-04-071-0/+17
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@17269 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed link to user in email notifications (#26506).Jean-Philippe Lang2017-07-241-0/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16876 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add test of email reminder in case of user language is 'auto' (#26247)Toshi MARUYAMA2017-06-231-0/+15
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16682 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-space from test/unit/mailer_test.rbToshi MARUYAMA2017-05-301-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16584 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send reminders about visible issues only (#25713).Jean-Philippe Lang2017-05-131-0/+19
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@16557 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enforce issue assignee validation (#23921).Jean-Philippe Lang2016-12-101-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16055 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds an assertion for this (#23180).Jean-Philippe Lang2016-06-291-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15588 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Missing fixtures (#14574).Jean-Philippe Lang2016-04-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15305 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't use custom hostname for all Mailer tests.Jean-Philippe Lang2016-03-261-31/+23
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15284 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Security notifications when password or email adress is changed (#21421).Jean-Philippe Lang2016-02-051-0/+45
| | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15145 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use regular edit/update actions and named routes for JournalsController.Jean-Philippe Lang2016-01-211-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15074 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds tracker name to Redmine issue link titles (#13946).Jean-Philippe Lang2015-09-211-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14620 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mail handler should not ignore emails with x-auto-response-suppress header ↵Jean-Philippe Lang2015-04-111-1/+1
| | | | | | | | (#19558). Patch by Sebastian Paluch. git-svn-id: http://svn.redmine.org/redmine/trunk@14159 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Incorrect links generated in emails if host setup uses other port (#19323).Jean-Philippe Lang2015-03-141-0/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14081 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Renamed test (#18983).Jean-Philippe Lang2015-02-071-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13967 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed wrong test (#18983).Jean-Philippe Lang2015-02-071-12/+6
| | | | | | Issue was not assigned to the version and assert_equal 1, ActionMailer::Base.deliveries.size was passing because of the issue creation notification. git-svn-id: http://svn.redmine.org/redmine/trunk@13966 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow filtering of Redmine Reminders by Version (#18983).Jean-Philippe Lang2015-02-071-0/+21
| | | | | | Patch by Merul Patel. git-svn-id: http://svn.redmine.org/redmine/trunk@13964 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't change Setting.default_language in Mailer tests.Jean-Philippe Lang2015-01-211-24/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13925 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgrade to Rails 4.2.0 (#14534).Jean-Philippe Lang2015-01-171-14/+19
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13892 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add support for multiple email addresses per user (#4244).Jean-Philippe Lang2015-01-171-1/+33
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed that quote in a fixture subject.Jean-Philippe Lang2014-12-201-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13775 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Misc tests.Jean-Philippe Lang2014-12-081-0/+13
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13734 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that IssueRelation should not be responsible for calling ↵Jean-Philippe Lang2014-11-021-0/+1
| | | | | | Issue#init_journal (#18237). git-svn-id: http://svn.redmine.org/redmine/trunk@13534 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mailer.token_for generates invalid message_id when using from address with ↵Jean-Philippe Lang2014-05-021-0/+6
| | | | | | full name (#16619). git-svn-id: http://svn.redmine.org/redmine/trunk@13126 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use escaped "Can't" constant at MailerTestToshi MARUYAMA2014-02-141-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12883 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test failure with Postgresql+ruby1.8 (#2549).Jean-Philippe Lang2014-02-091-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12870 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable the watching of news (#2549).Jean-Philippe Lang2014-02-091-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12866 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that links for relations in notifications do not include hostname ↵Jean-Philippe Lang2013-12-151-0/+10
| | | | | | (#15677). git-svn-id: http://svn.redmine.org/redmine/trunk@12415 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that the mail method should return a Mail::Message (#15113).Jean-Philippe Lang2013-10-131-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12210 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that standard fields disabled still appear in email notifications ↵Jean-Philippe Lang2013-08-051-0/+23
| | | | | | (#14584). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12079 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't notify users about relations that are not visible (#1005).Jean-Philippe Lang2013-07-131-0/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12015 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Role-based issue custom field visibility (#5037).Jean-Philippe Lang2013-07-131-30/+32
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12012 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Log email delivery errors (#14403).Jean-Philippe Lang2013-07-131-0/+23
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12010 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds markings to emails generated by private comments (#12888).Jean-Philippe Lang2013-05-181-0/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11869 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that locking and unlocking a user resets the email notification ↵Jean-Philippe Lang2013-05-131-3/+3
| | | | | | checkbox (#14020). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11839 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix test name (#13482)Toshi MARUYAMA2013-04-181-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11722 e93f8b46-1217-0410-a6f0-8f06a7374b81
* not add empty header/footer to notification emails (#13482)Toshi MARUYAMA2013-04-181-0/+26
| | | | | | Contributed by Max Horn. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11721 e93f8b46-1217-0410-a6f0-8f06a7374b81