Sha256: 2becbeabef3cbd5edda4dfc8c749d5f4b7e5fa599ac08cf861adf437ed419276
Contents?: true
Size: 743 Bytes
Versions: 19
Compression:
Stored size: 743 Bytes
Contents
class Nanoc::Helpers::TextTest < Nanoc::TestCase include Nanoc::Helpers::Text def test_excerpt_length assert_equal('...', excerptize('Foo bar baz quux meow woof', length: 3)) assert_equal('Foo ...', excerptize('Foo bar baz quux meow woof', length: 7)) assert_equal('Foo bar baz quux meow woof', excerptize('Foo bar baz quux meow woof', length: 26)) assert_equal('Foo bar baz quux meow woof', excerptize('Foo bar baz quux meow woof', length: 8_623_785)) end def test_excerpt_omission assert_equal('Foo [continued]', excerptize('Foo bar baz quux meow woof', length: 15, omission: '[continued]')) end def test_strip_html # TODO: implement end end
Version data entries
19 entries across 19 versions & 1 rubygems