Sha256: 445a8c59a59caa7f3d0e222dfade722ed7076cce5b51880a0a400dc0fb4f66d0

Contents?: true

Size: 672 Bytes

Versions: 21

Compression:

Stored size: 672 Bytes

Contents

require "spec_helper"
  
RSpec.describe IsoDoc do
it "generates file based on string input" do
  FileUtils.rm_f "test.presentation.xml"
    IsoDoc::PresentationXMLConvert.new({filename: "test"}).convert("test", <<~"INPUT", false)
        <iso-standard xmlns="http://riboseinc.com/isoxml">
        <bibdata>
        <title language="en">test</title>
        </bibdata>
    <preface><foreword>
    <note>
  <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
</note>
    </foreword></preface>
    </iso-standard>
    INPUT
    expect(File.exist?("test.presentation.xml")).to be true
  end
end

Version data entries

21 entries across 18 versions & 2 rubygems

Version Path
isodoc-1.2.7 spec/isodoc/presentation_xml_spec.rb
isodoc-1.2.6 spec/isodoc/presentation_xml_spec.rb
isodoc-1.2.5 spec/isodoc/presentation_xml_spec.rb
isodoc-1.2.4 spec/isodoc/presentation_xml_spec.rb
isodoc-1.2.3 spec/isodoc/presentation_xml_spec.rb
isodoc-1.2.2 spec/isodoc/presentation_xml_spec.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/isodoc-1.2.1/spec/isodoc/presentation_xml_spec.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/isodoc-1.1.2/spec/isodoc/presentation_xml_spec.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/isodoc-1.1.3/spec/isodoc/presentation_xml_spec.rb
isodoc-1.2.1 spec/isodoc/presentation_xml_spec.rb
isodoc-1.2.0 spec/isodoc/presentation_xml_spec.rb
isodoc-1.1.4 spec/isodoc/presentation_xml_spec.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/isodoc-1.1.2/spec/isodoc/presentation_xml_spec.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/isodoc-1.1.3/spec/isodoc/presentation_xml_spec.rb
isodoc-1.1.3 spec/isodoc/presentation_xml_spec.rb
isodoc-1.1.3.pre.alpha3 spec/isodoc/presentation_xml_spec.rb
isodoc-1.1.3.pre.alpha2 spec/isodoc/presentation_xml_spec.rb
isodoc-1.1.3.pre.alpha spec/isodoc/presentation_xml_spec.rb
isodoc-1.1.2 spec/isodoc/presentation_xml_spec.rb
isodoc-1.1.1 spec/isodoc/presentation_xml_spec.rb