diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-11-02 19:00:36 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-11-02 19:00:36 +0000 |
commit | 7e359d3d7e1364ea92e08f7922036f5ad8ccd81f (patch) | |
tree | 9e806621fc40238438193c0847567ca8f4adb83c /test | |
parent | 0395eb99decaac54dc8acf6162b3129893341be0 (diff) | |
download | redmine-7e359d3d7e1364ea92e08f7922036f5ad8ccd81f.tar.gz redmine-7e359d3d7e1364ea92e08f7922036f5ad8ccd81f.zip |
Add a Email Header setting. Useful for adding delimiters to every email.
#2852 #6628
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4362 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/mailer_test.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index 77bcb36f6..e01cc1039 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -393,4 +393,21 @@ class MailerTest < ActiveSupport::TestCase # should restore perform_deliveries assert ActionMailer::Base.perform_deliveries end + + context "layout" do + should "include the emails_header" do + with_settings(:emails_header => "*Header content*") do + assert Mailer.deliver_test(User.find(1)) + + assert_select_email do + assert_select ".header" do + assert_select "strong", :text => "Header content" + end + end + end + + end + + end + end |