Sha256: d9d31851dfddd6b7a68ff76041cf8efdacdd617d189315966226996685789dbc
Contents?: true
Size: 1.53 KB
Versions: 2
Compression:
Stored size: 1.53 KB
Contents
require "spec_helper" require "relaton_iso" RSpec.describe Asciidoctor::Standoc do it "processes simple dl reference" do expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true))).to be_equivalent_to <<~"OUTPUT" #{ASCIIDOC_BLANK_HDR} [bibliography] == Normative References [%bibitem] === Standard ref:: iso123 docidentifier:: ISO 123 doctype:: standard contributor_publisher_role:: contributor_publisher_organization:: ISO contributor_author_person:: ... Fred ... Jack INPUT #{BLANK_HDR} <sections> </sections><bibliography><references id="_" obligation="informative"> <title>Normative References</title> <bibitem id="iso123" type="standard"> <fetched>#{Date.today}</fetched> <title>Standard</title> <docidentifier>ISO 123</docidentifier> <contributor> <role type="publisher"/> <organization> <name>ISO</name> </organization> </contributor> <contributor> <role type="author"/> <person> <name><completename>Fred</completename></name> </person> </contributor> <contributor> <role type="author"/> <person> <name><completename>Jack</completename></name> </person> </contributor> </bibitem> </references> </bibliography> </standard-document> OUTPUT end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metanorma-standoc-1.2.1 | spec/asciidoctor-standoc/refs_dl_spec.rb |
metanorma-standoc-1.2.0 | spec/asciidoctor-standoc/refs_dl_spec.rb |