Improved tests.

This commit is contained in:
Martin Edenhofer 2014-12-29 18:21:41 +01:00
parent 6de94974a5
commit 8bf6a28781
2 changed files with 3 additions and 2 deletions

View file

@ -93,8 +93,7 @@ module Channel::EmailBuild
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>'
<head>
<body style="#{css}">
</body>
<body style="#{css}">#{html}</body>
</html>
HERE

View file

@ -11,6 +11,7 @@ class EmailBuildTest < ActiveSupport::TestCase
assert( result !~ /^.+?<\!DOCTYPE/, 'test 1')
assert( result =~ /<html>/, 'test 1')
assert( result =~ /font-family/, 'test 1')
assert( result =~ /<b>test<\/b>/, 'test 1')
html = 'invalid <!DOCTYPE html><html><b>test</b></html>'
@ -20,6 +21,7 @@ class EmailBuildTest < ActiveSupport::TestCase
assert( result =~ /^.+?<\!DOCTYPE/, 'test 2')
assert( result =~ /<html>/, 'test 2')
assert( result !~ /font-family/, 'test 2')
assert( result =~ /<b>test<\/b>/, 'test 2')
end
end