require 'spec_helper'
describe ReverseAsciidoctor::Converters::Strong do
let(:converter) { ReverseAsciidoctor::Converters::Strong.new }
it 'returns an empty string if the node is empty' do
input = node_for('')
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('foo')
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(" \n foo ")
expect(converter.convert(input)).to eq " *foo* "
end
end