Sha256: 264d5d38901baa466437410c05acfd80ad862271ced4b4e436a7c4bbc5239f5a
Contents?: true
Size: 642 Bytes
Versions: 7
Compression:
Stored size: 642 Bytes
Contents
# encoding: UTF-8 $:.unshift(File.dirname(__FILE__) + '/../lib') require 'test/unit' require 'htmlentities' $KCODE = 'u' unless "1.9".respond_to?(:encoding) class HTMLEntities::XHTML1Test < Test::Unit::TestCase attr_reader :html_entities def setup @html_entities = HTMLEntities.new('xhtml1') end def test_should_encode_apos_entity assert_equal "'", html_entities.encode("'", :basic) end def test_should_decode_apos_entity assert_equal "é'", html_entities.decode("é'") end def test_should_not_decode_dotted_entity assert_equal "&b.Theta;", html_entities.decode("&b.Theta;") end end
Version data entries
7 entries across 7 versions & 2 rubygems