diff options
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 |