Sha256: d9822be5166471f5b3601fc2ca696823f429425c2bbc9ae82e28e3511f101cc7
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
require "spec_helper" describe Asciidoctor::RFC::V3::Converter do it "renders a listing" do expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc3)).to be_equivalent_to <<~'OUTPUT' [[literal-id]] .filename [align=left,alt=alt_text] .... Literal contents. .... INPUT <figure> <artwork anchor="literal-id" align="left" name="filename" type="ascii-art" alt="alt_text"> Literal contents. </artwork> </figure> OUTPUT end it "ignores callouts" do expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc3)).to be_equivalent_to <<~'OUTPUT' [[literal-id]] .filename [align=left,alt=alt_text] .... Literal contents. .... <1> This is a callout INPUT <figure> <artwork anchor="literal-id" align="left" name="filename" type="ascii-art" alt="alt_text"> Literal contents. </artwork> </figure> OUTPUT end it "renders stem as a literal" do expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc3)).to be_equivalent_to <<~'OUTPUT' :stem: [stem] ++++ sqrt(4) = 2 ++++ INPUT <figure> <artwork type="ascii-art" align="center"> sqrt(4) = 2 </artwork> </figure> OUTPUT end it "renders stem as a literal within an example" do expect(Asciidoctor.convert(<<~'INPUT', backend: :rfc3)).to be_equivalent_to <<~'OUTPUT' :stem: [#id] ==== [stem] ++++ sqrt(4) = 2 ++++ ==== INPUT <figure anchor="id"> <artwork type="ascii-art" align="center"> sqrt(4) = 2 </artwork> </figure> OUTPUT end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-rfc-0.8.2 | spec/asciidoctor/rfc/v3/literal_spec.rb |