Sha256: 1ac916fdab58f852f9c95d37f5a9eb208315a3e7213ffe32ec92c366eab5fa60
Contents?: true
Size: 683 Bytes
Versions: 5
Compression:
Stored size: 683 Bytes
Contents
require_relative '../../../test_helper' require_relative '../../../../lib/vedeu/output/text_adaptor' module Vedeu describe TextAdaptor do describe '.adapt' do it 'returns an empty collection for an empty string' do TextAdaptor.adapt('').must_be_empty end it 'returns a single line' do text = "This is a single line of text.\n" TextAdaptor.adapt(text).size.must_equal(1) end it 'returns multiple lines' do text = "Lorem ipm olor sit aet,\nConsctetur adipiscing.\n" \ "Curitur aiquet, trpis id dui.\n\nCondum elemum.\n" TextAdaptor.adapt(text).size.must_equal(5) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems