Sha256: 63f85f389a9fb272220bf800266c46cbef8815eed76156d466b04432598b457c
Contents?: true
Size: 915 Bytes
Versions: 8
Compression:
Stored size: 915 Bytes
Contents
require "spec_helper" require "fileutils" RSpec.describe Asciidoctor::Standoc do it "processes a blank document" do input = <<~INPUT #{ASCIIDOC_BLANK_HDR} INPUT output = <<~OUTPUT #{BLANK_HDR} <sections/> </standard-document> OUTPUT expect(xmlpp(Asciidoctor.convert(input, *OPTIONS))) .to be_equivalent_to xmlpp(output) end it "converts a blank document" do FileUtils.rm_f "test.doc" input = <<~INPUT = Document title Author :docfile: test.adoc :novalid: INPUT output = <<~OUTPUT #{BLANK_HDR} <sections/> </standard-document> OUTPUT expect(xmlpp(Asciidoctor.convert(input, *OPTIONS))) .to be_equivalent_to xmlpp(output) 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
8 entries across 8 versions & 1 rubygems