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:
parent
2ab7dba964
commit
313bfa5408
|
@ -486,15 +486,12 @@ class MailerTest < ActiveSupport::TestCase
|
||||||
assert !mail.encoded.strip.split("\r\n").detect(&:blank?), "#{mail.encoded} malformed"
|
assert !mail.encoded.strip.split("\r\n").detect(&:blank?), "#{mail.encoded} malformed"
|
||||||
end
|
end
|
||||||
|
|
||||||
context "layout" do
|
def test_layout_should_include_the_emails_header
|
||||||
should "include the emails_header" do
|
with_settings :emails_header => "*Header content*" do
|
||||||
with_settings(:emails_header => "*Header content*") do
|
assert Mailer.deliver_test(User.find(1))
|
||||||
assert Mailer.deliver_test(User.find(1))
|
assert_select_email do
|
||||||
|
assert_select ".header" do
|
||||||
assert_select_email do
|
assert_select "strong", :text => "Header content"
|
||||||
assert_select ".header" do
|
|
||||||
assert_select "strong", :text => "Header content"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue