Sha256: f3e0fb6bd46e6f074792ca136219fa0f227c293c2f9980f12ecdfc34cbca1937

Contents?: true

Size: 951 Bytes

Versions: 5

Compression:

Stored size: 951 Bytes

Contents

require "spec_helper"
describe Asciidoctor::RFC::V3::Converter do
  it "renders a minimal example" do
    expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc3)).to be_equivalent_to <<~'OUTPUT'
      ====
      Example
      ====
    INPUT
      <figure>
      <t>Example</t>
      </figure>
    OUTPUT
  end
  it "renders a maximal example" do
    expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc3)).to be_equivalent_to <<~'OUTPUT'
      [[id]]
      .Figure 1
      ====
      [[id2]]
      .figure1.txt
      ....
      Figures are only permitted to contain listings (sourcecode), images (artwork), or literal (artwork)
      ....
      ====
    INPUT
      <figure anchor="id">
      <name>Figure 1</name>
      <artwork anchor="id2" name="figure1.txt" type="ascii-art"><![CDATA[
      Figures are only permitted to contain listings (sourcecode), images (artwork), or literal (artwork)
      ]]></artwork>
      </figure>
    OUTPUT
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciidoctor-rfc-0.9.2 spec/asciidoctor/rfc/v3/example_spec.rb
asciidoctor-rfc-0.9.1 spec/asciidoctor/rfc/v3/example_spec.rb
asciidoctor-rfc-0.9.0 spec/asciidoctor/rfc/v3/example_spec.rb
asciidoctor-rfc-0.8.5 spec/asciidoctor/rfc/v3/example_spec.rb
asciidoctor-rfc-0.8.3 spec/asciidoctor/rfc/v3/example_spec.rb