summaryrefslogtreecommitdiffstats
path: root/test/unit/mailer_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-27 16:38:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-27 16:38:08 +0000
commit08f44b67f53518bdbe8a4cf56253f74f0e0cb169 (patch)
tree0ac44c57c7016b21d803282921f974bf8226757a /test/unit/mailer_test.rb
parent100a53d2400110aa17b94ad6fafae40c40dc9d93 (diff)
downloadredmine-08f44b67f53518bdbe8a4cf56253f74f0e0cb169.tar.gz
redmine-08f44b67f53518bdbe8a4cf56253f74f0e0cb169.zip
Fixed links in new file notification broken by r4051 (#6590).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5230 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mailer_test.rb')
-rw-r--r--test/unit/mailer_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 36ed4fe94..ced0447bc 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -26,6 +26,7 @@ class MailerTest < ActiveSupport::TestCase
ActionMailer::Base.deliveries.clear
Setting.host_name = 'mydomain.foo'
Setting.protocol = 'http'
+ Setting.plain_text_mail = '0'
end
def test_generated_links_in_emails
@@ -278,6 +279,9 @@ class MailerTest < ActiveSupport::TestCase
assert Mailer.deliver_attachments_added(attachements)
assert_not_nil last_email.bcc
assert last_email.bcc.any?
+ assert_select_email do
+ assert_select "a[href=?]", "http://mydomain.foo/projects/ecookbook/files"
+ end
end
def test_project_file_added
@@ -285,6 +289,9 @@ class MailerTest < ActiveSupport::TestCase
assert Mailer.deliver_attachments_added(attachements)
assert_not_nil last_email.bcc
assert last_email.bcc.any?
+ assert_select_email do
+ assert_select "a[href=?]", "http://mydomain.foo/projects/ecookbook/files"
+ end
end
def test_news_added