Skip to content

Commit

Permalink
Improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 11, 2024
1 parent c386269 commit a89cb0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ahoy_email/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def track_links
end
end

# use document instead of fragment
# https://github.com/ankane/ahoy_email/pull/150
def parser_class
case options[:html5]
when true
Expand Down
2 changes: 2 additions & 0 deletions test/utm_params_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def test_nested_table_html5
message = UtmParamsMailer.nested_table.deliver_now
assert_body "utm_medium=email", message
assert_body "<table></table></a>", message
assert_body "<html>", message
end
end

Expand All @@ -43,6 +44,7 @@ def test_nested_table_html4
message = UtmParamsMailer.nested_table.deliver_now
assert_body "utm_medium=email", message
assert_body "</a><table></table>", message
assert_body "HTML 4.0", message
end
end

Expand Down

0 comments on commit a89cb0e

Please sign in to comment.