Sha256: e45acd48cd00f26fd99b2af9b9df4b0e4762058775188931d831fcc7a94d300c

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

# encoding: utf-8

require 'test/helper'

class Nanoc3::Helpers::HTMLEscapeTest < MiniTest::Unit::TestCase

  include Nanoc3::TestHelpers

  include Nanoc3::Helpers::HTMLEscape

  def test_html_escape
    assert_equal('&lt;',    html_escape('<'))
    assert_equal('&gt;',    html_escape('>'))
    assert_equal('&amp;',   html_escape('&'))
    assert_equal('&quot;',  html_escape('"'))
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nanoc3-3.1.9 test/helpers/test_html_escape.rb
nanoc3-3.1.8 test/helpers/test_html_escape.rb