Sha256: f9e8e37d1487087346c007e6a97087bc6d34a139f553ea9334718b95c84663ef

Contents?: true

Size: 1.24 KB

Versions: 8

Compression:

Stored size: 1.24 KB

Contents

require "spec_helper"
describe Asciidoctor::RFC::V3::Converter do
  it "renders series, author, date, area, workgroup, keyword in sequence" do
    expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc3, header_footer: true)).to be_equivalent_to <<~'OUTPUT'
      = Document title
      Author
      :abbrev: abbrev_value
      :name: rfc-1111
      :revdate: 1999-01-01
      :area: horticulture
      :workgroup: IETF
      :keyword: widgets

      == Section 1
      Text
    INPUT
      <?xml version="1.0" encoding="US-ASCII"?>
      <!DOCTYPE rfc SYSTEM "rfc2629.dtd">

      <rfc prepTime="2000-01-01T05:00:00Z"
                version="3" submissionType="IETF">
      <front>
      <title abbrev="abbrev_value">Document title</title>
      <seriesInfo name="RFC" stream="IETF" value="1111"/>
      <author fullname="Author">
      </author>
      <date day="1" month="January" year="1999"/>
      <area>horticulture</area>
      <workgroup>IETF</workgroup>
      <keyword>widgets</keyword>
      </front><middle>
             <section anchor="_section_1" numbered="false">

                      <name>Section 1</name>

                               <t>Text</t>

                                      </section>
      </middle>
      </rfc>
    OUTPUT
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
asciidoctor-rfc-0.9.2 spec/asciidoctor/rfc/v3/front_spec.rb
asciidoctor-rfc-0.9.1 spec/asciidoctor/rfc/v3/front_spec.rb
asciidoctor-rfc-0.9.0 spec/asciidoctor/rfc/v3/front_spec.rb
asciidoctor-rfc-0.8.5 spec/asciidoctor/rfc/v3/front_spec.rb
asciidoctor-rfc-0.8.3 spec/asciidoctor/rfc/v3/front_spec.rb
asciidoctor-rfc-0.8.2 spec/asciidoctor/rfc/v3/front_spec.rb
asciidoctor-rfc-0.8.0 spec/asciidoctor/rfc/v3/front_spec.rb
asciidoctor-rfc-0.2.0 spec/asciidoctor/rfc/v3/front_spec.rb