Sha256: f2a4e2a0e04761f4eff935b1121913232d399dea6752c4ca2566e080999a4bea
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') require 'htmlentities/string' require 'test/unit' $KCODE = 'u' class TestHTMLEntities < Test::Unit::TestCase def test_string_responds_correctly_to_decode_entities assert_equal('±', '±'.decode_entities) end def test_string_responds_correctly_to_encode_entities_with_no_parameters assert_equal('"', '"'.encode_entities) end def test_string_responds_correctly_to_encode_entities_with_multiple_parameters assert_equal( '"bientôt" & 文字', '"bientôt" & 文字'.encode_entities(:basic, :named, :hexadecimal) ) end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
htmlentities-4.0.0 | test/string_test.rb |
typo-5.3 | vendor/gems/htmlentities-4.0.0/test/string_test.rb |