Sha256: 74c54e16f73c3384db59bb26eccf177fd0324e4be143dc137dc024198ffae4a5
Contents?: true
Size: 963 Bytes
Versions: 24
Compression:
Stored size: 963 Bytes
Contents
require "spec_helper" RSpec.describe Metanorma::ISO do it "processes a blank document" do input = <<~INPUT #{ASCIIDOC_BLANK_HDR} INPUT output = <<~OUTPUT #{BLANK_HDR} <sections/> </iso-standard> OUTPUT expect(xmlpp(Asciidoctor.convert(input, *OPTIONS))) .to be_equivalent_to xmlpp(output) end it "converts a blank document" do input = <<~INPUT = Document title Author :docfile: test.adoc :novalid: :no-isobib: INPUT output = <<~OUTPUT #{BLANK_HDR} <sections/> </iso-standard> OUTPUT expect(xmlpp(Asciidoctor.convert(input, *OPTIONS))) .to be_equivalent_to xmlpp(output) expect(File.exist?("test_alt.html")).to be true expect(File.exist?("test.html")).to be true expect(File.exist?("test.doc")).to be true expect(File.exist?("test.pdf")).to be true expect(File.exist?("htmlstyle.css")).to be false end end
Version data entries
24 entries across 24 versions & 1 rubygems