summaryrefslogtreecommitdiffstats
path: root/test/unit/mailer_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make sure users don't get notified for thing they can not view (#3589).Jean-Philippe Lang2009-12-131-3/+43
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed some tests that where looking for specific issue urls but weren't matchingEric Davis2009-11-141-20/+27
| | | | | | the css classes for the link. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3049 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Sets proper content type for plain text mails (#3970).Jean-Philippe Lang2009-10-241-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2961 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes some test failures due to Array#to_s behaviour in ruby1.9.Jean-Philippe Lang2009-10-101-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2913 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgraded to Rails 2.3.4 (#3597)Eric Davis2009-09-131-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ran the Rails upgrade * Upgraded to Rails Engines 2.3.2 * Added a plugin to let Engines override application views. * Converted tests to use the new classes: ** ActionController::TestCase for functional ** ActiveSupport::TestCase for units * Converted ActiveRecord::Error message to a string. * ActiveRecord grouping returns an ordered hash which doesn't have #sort! * Updated the I18n storage_units format. * Added some default initializers from a fresh rails app * Changed the order of check_box_tags and hidden_field_tags. The hidden tag needs to appear first in Rails 2.3, otherwise it will override any value in the check_box_tag. * Removed the custom handler for when the cookie store is tampered with. Rails 2.3 removed the TamperedWithCookie exception and instead Rails will not load the data from it when it's been tampered with (e.g. no user login). * Fixed mail layouts, 2.3 has problems with implicit multipart emails that use layouts. Also removed some custom Redmine mailer code. * Fixed a bug that occurred in tests where the "required" span tag would be added to the :field_status translation. This resulted in an email string of: <li>Status<span class="required"> *</span><span class="required"> *</span> Instead of: <li>Status: New</li> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2887 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allows multiple roles on the same project (#706). Prerequisite for user ↵Jean-Philippe Lang2009-05-101-1/+1
| | | | | | groups feature. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2726 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces List-Id header with Precedence and Auto-Submitted headers (#2984, ↵Jean-Philippe Lang2009-04-051-0/+10
| | | | | | #2879). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2655 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test that account activation email contains the appropriate link (#2825).Jean-Philippe Lang2009-03-071-0/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2561 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-9/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Converted routing and urls to follow the Rails REST convention.Eric Davis2009-01-261-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch supplied by commits from Gerrit Kaiser on Github. Existing routes will still work (backwards compatible) but any new urls will be generated using the new routing rules. Changes listed below: * made the URLs for some project tabs and project settings follow the new rails RESTful conventions of /collection/:id/subcollection/:sub_id * prettier URL for project roadmap * more nice project URLs * use GET for filtering form * prettified URLs used on issues tab * custom route for activity atom feeds * prettier repository urls * fixed broken route definition * fixed failing tests for issuecontroller that were hardcoding the url string * more RESTful routes for boards and messages * RESTful routes for wiki pages * RESTful routes for documents * moved old routes that are retained for compatibility to the bottom and grouped them together * added RESTful URIs for issues * RESTfulness for the news section * fixed route order * changed hardcoded URLs in tests * fixed badly written tests * fixed forgotten parameter in routes * changed hardcoded URLS to new scheme * changed project add url to the standard POST to collection * create new issue by POSTing to collection * changed hardcoded URLs in integrations tests * made project add form work again * restful routes for project deletion * prettier routes for project (un)archival * made routes table more readable * fixed note quoting * user routing * fixed bug * always sort by GET * Fixed: cross-project issue list should not show issues of projects for which the issue tracking module was disabled. * prettified URLs used on issues tab * urls for time log * fixed reply routing * eliminate revision query paremeter for diff and entry actions * fixed test failures with hard-coded urls * ensure ajax links always use get * refactored ajax link generation into separate method #1901 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2317 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Message-Id and References headers to email notifications so that issues ↵Jean-Philippe Lang2009-01-181-1/+39
| | | | | | and messages threads can be displayed by email clients (#1401). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2281 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Slight changes to ease Rails 2.2 support.Jean-Philippe Lang2009-01-041-6/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2234 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not use @:skip_relative_url_root@ to generate urls in Mailer (#2122).Jean-Philippe Lang2008-11-081-0/+48
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1992 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add plain text option for mail #2029Nicolas Chuche2008-10-151-1/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1932 e93f8b46-1217-0410-a6f0-8f06a7374b81
* bugfix to two failed testsNicolas Chuche2008-10-151-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1931 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes test broken by r1549.Jean-Philippe Lang2008-06-151-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1551 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a rake task to send reminders. An email is sent to each user with a ↵Jean-Philippe Lang2008-05-251-0/+9
| | | | | | | | list of the issues due in the next days, if any. See @rake -D redmine:send_reminders@ for options. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1459 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add Redmine links for repository files using source: and export: keyworkds ↵Jean-Philippe Lang2008-03-171-1/+1
| | | | | | (#867). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1267 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes:Jean-Philippe Lang2008-02-171-1/+20
| | | | | | | | * email notifications: host name is missing in generated links (#639, #201) * email notifications: referenced changesets, wiki pages, attachments... are not turned into links (only ticket ids are) * attachment links and inline images don't work in issue notes git-svn-id: http://redmine.rubyforge.org/svn/trunk@1161 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mailer:Jean-Philippe Lang2007-11-041-3/+40
| | | | | | | | | | * added an application setting to specify the application protocol (http or https) used to generate urls * added layouts for text and html emails * no more language specific templates * urls are now generated using UrlWriter * the mailer now uses AdvAttrAccessor code style to set email parameters git-svn-id: http://redmine.rubyforge.org/svn/trunk@877 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed translated email templates attachments_added and document_added (no ↵Jean-Philippe Lang2007-10-121-1/+1
| | | | | | longer usefull). git-svn-id: http://redmine.rubyforge.org/svn/trunk@834 e93f8b46-1217-0410-a6f0-8f06a7374b81
* wiki branch merged into trunkJean-Philippe Lang2007-03-101-5/+5
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@323 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fixtures loading correctionJean-Philippe Lang2007-02-021-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@216 e93f8b46-1217-0410-a6f0-8f06a7374b81
* added unit tests for mailerJean-Philippe Lang2007-02-021-0/+63
git-svn-id: http://redmine.rubyforge.org/svn/trunk@215 e93f8b46-1217-0410-a6f0-8f06a7374b81