test: replace should "include the emails_header" at unit mailer test to Rails standard test suite

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8469 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-02 11:38:29 +00:00
parent 2ab7dba964
commit 313bfa5408
1 changed files with 6 additions and 9 deletions

View File

@ -486,15 +486,12 @@ class MailerTest < ActiveSupport::TestCase
assert !mail.encoded.strip.split("\r\n").detect(&:blank?), "#{mail.encoded} malformed"
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
def test_layout_should_include_the_emails_header
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