Sha256: e14077ba4ea5adf73f7481bdaf174d0610f44151b849de5f587b58882e7dcd10
Contents?: true
Size: 690 Bytes
Versions: 9
Compression:
Stored size: 690 Bytes
Contents
require 'spec_helper' describe ReverseAdoc::Converters::Strong do let(:converter) { ReverseAdoc::Converters::Strong.new } it 'returns an empty string if the node is empty' do input = node_for('<strong></strong>') expect(converter.convert(input)).to eq '' end it 'returns just the content if the strong tag is nested in another strong' do input = node_for('<strong><strong>foo</strong></strong>') expect(converter.convert(input.children.first, already_strong: true)).to eq 'foo' end it 'moves border whitespaces outside of the delimiters tag' do input = node_for("<strong> \n foo </strong>") expect(converter.convert(input)).to eq " *foo* " end end
Version data entries
9 entries across 9 versions & 1 rubygems