require 'test/unit' require 'feed_tools' class HelperTest < Test::Unit::TestCase def setup FeedTools.tidy_enabled = false end def test_escape_entities end def test_unescape_entities end def test_normalize_url assert_equal("http://slashdot.org/", FeedTools.normalize_url("slashdot.org")) end def test_sanitize_html end def test_tidy_html FeedTools.tidy_enabled = true FeedTools.tidy_enabled = false end end