diff --git a/app/models/channel/email_build.rb b/app/models/channel/email_build.rb index 380589504..2cddfa960 100644 --- a/app/models/channel/email_build.rb +++ b/app/models/channel/email_build.rb @@ -93,8 +93,7 @@ module Channel::EmailBuild
' - - + #{html} HERE diff --git a/test/unit/email_build_test.rb b/test/unit/email_build_test.rb index 5e4acdb57..f21e9eff6 100644 --- a/test/unit/email_build_test.rb +++ b/test/unit/email_build_test.rb @@ -11,6 +11,7 @@ class EmailBuildTest < ActiveSupport::TestCase assert( result !~ /^.+?<\!DOCTYPE/, 'test 1') assert( result =~ //, 'test 1') assert( result =~ /font-family/, 'test 1') + assert( result =~ /test<\/b>/, 'test 1') html = 'invalid test' @@ -20,6 +21,7 @@ class EmailBuildTest < ActiveSupport::TestCase assert( result =~ /^.+?<\!DOCTYPE/, 'test 2') assert( result =~ //, 'test 2') assert( result !~ /font-family/, 'test 2') + assert( result =~ /test<\/b>/, 'test 2') end end \ No newline at end of file