Permalink
Browse files

html safety

  • Loading branch information...
1 parent f371f12 commit 6ea2ff9ca4b6b97b06168d573b7441e3f5973dff @carpodaster carpodaster committed Apr 20, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/microformats_helper_test.rb
@@ -55,6 +55,11 @@ def test_hcard_tel
assert_equal "<span class=\"vcard\">\n<span class=\"fn n\">John Doe</span>\n\n<span class=\"tel\"><span class=\"tel-label-home type\">Home: </span><span class=\"value\">555-5555</span>\n<span class=\"tel-label-fax type\">Fax: </span><span class=\"value\">544-5544</span>\n</span>\n</span>", output
end
+ def test_hcard_html_safeness
+ assert hcard(:fn => "John Doe").html_safe?
+ end
+
+
# #######################################################################
# Testing hreview-aggregate
@@ -102,4 +107,8 @@ def test_hreview_aggregate_votes
end
end
+ def test_hreview_aggregate_html_safeness
+ assert hreview_aggregate(:fn => "John Doe's Pawn Shop").html_safe?
+ end
+
end

0 comments on commit 6ea2ff9

Please sign in to comment.