# encoding: utf-8 class Nanoc::Helpers::HTMLEscapeTest < Nanoc::TestCase include Nanoc::Helpers::HTMLEscape def test_html_escape_with_string assert_equal('<', html_escape('<')) assert_equal('>', html_escape('>')) assert_equal('&', html_escape('&')) assert_equal('"', html_escape('"')) end def test_html_escape_with_block _erbout = 'moo' html_escape do _erbout << '