summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-21 11:24:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-21 11:24:41 +0000
commitfa2b39bf7317688819ab9ade50652e24b1d32fdc (patch)
treec1942e04a15db9bc69e23125694976dc9519f79e /test
parentc295f67329655587a19c96fa479bc04828fdcb1c (diff)
downloadredmine-fa2b39bf7317688819ab9ade50652e24b1d32fdc.tar.gz
redmine-fa2b39bf7317688819ab9ade50652e24b1d32fdc.zip
Merged r12415 (#15677).
git-svn-id: http://svn.redmine.org/redmine/branches/2.4-stable@12432 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/mailer_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 138611bc1..9a0ff41eb 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -113,6 +113,16 @@ class MailerTest < ActiveSupport::TestCase
end
end
+ def test_issue_edit_should_generate_url_with_hostname_for_relations
+ journal = Journal.new(:journalized => Issue.find(1), :user => User.find(1), :created_on => Time.now)
+ journal.details << JournalDetail.new(:property => 'relation', :prop_key => 'label_relates_to', :value => 2)
+ Mailer.deliver_issue_edit(journal)
+ assert_not_nil last_email
+ assert_select_email do
+ assert_select 'a[href=?]', 'http://mydomain.foo/issues/2', :text => 'Feature request #2'
+ end
+ end
+
def test_generated_links_with_prefix_and_no_relative_url_root
Setting.default_language = 'en'
relative_url_root = Redmine::Utils.relative_url_root