diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-24 16:59:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-24 16:59:23 +0000 |
commit | 1cb1be17a98875e2f6b887e8cca281f28714c88f (patch) | |
tree | 7f8b8093d283e26aaf8aedadfa47bfb6bea63b88 /test | |
parent | 97ce6dab6e2988cad7c4a798d851dacc5bca4887 (diff) | |
download | redmine-1cb1be17a98875e2f6b887e8cca281f28714c88f.tar.gz redmine-1cb1be17a98875e2f6b887e8cca281f28714c88f.zip |
Fixed link to user in email notifications (#26506).
git-svn-id: http://svn.redmine.org/redmine/trunk@16876 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/mailer_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index a755b8a5f..87fcf84e7 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -193,6 +193,14 @@ class MailerTest < ActiveSupport::TestCase Redmine::Utils.relative_url_root = relative_url_root end + def test_link_to_user_in_email + issue = Issue.generate!(:description => '@jsmith') + assert Mailer.deliver_issue_add(issue) + assert_select_email do + assert_select "a[href=?]", "http://localhost:3000/users/2", :text => 'John Smith' + end + end + def test_email_headers issue = Issue.find(1) Mailer.deliver_issue_add(issue) |