Sha256: dd7487f62a045fe0cadc84963fbe1e88c9cc36f242b072b7f81a34ab57f5f680

Contents?: true

Size: 771 Bytes

Versions: 6

Compression:

Stored size: 771 Bytes

Contents

require "spec_helper"
describe Asciidoctor::RFC::V2::Converter do
  it "renders a quote as a paragraph" do
    expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc2)).to be_equivalent_to <<~'OUTPUT'
      [[verse-id]]
      [quote, attribution="quote attribution", citetitle="http://www.foo.bar"]
      Text
    INPUT
      <t anchor="verse-id">Text</t><t>-- quote attribution, http://www.foo.bar</t>
    OUTPUT
  end

  it "renders a verse" do
    expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc2)).to be_equivalent_to <<~'OUTPUT'
      [[verse-id]]
      [verse, Carl Sandburg, two lines from the poem Fog]
      The fog comes
      on little cat feet.
    INPUT
      <t anchor="verse-id">The fog comes<vspace/>
      on little cat feet.</t>
    OUTPUT
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
asciidoctor-rfc-0.9.2 spec/asciidoctor/rfc/v2/quote_spec.rb
asciidoctor-rfc-0.9.1 spec/asciidoctor/rfc/v2/quote_spec.rb
asciidoctor-rfc-0.9.0 spec/asciidoctor/rfc/v2/quote_spec.rb
asciidoctor-rfc-0.8.5 spec/asciidoctor/rfc/v2/quote_spec.rb
asciidoctor-rfc-0.8.3 spec/asciidoctor/rfc/v2/quote_spec.rb
asciidoctor-rfc-0.8.2 spec/asciidoctor/rfc/v2/quote_spec.rb