Skip to content

Commit

Permalink
lang in metadata: metanorma/metanorma-bipm#5
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Oct 15, 2020
1 parent 6db06ca commit 78a8f9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/asciidoctor/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
Author
:docfile: test.adoc
:novalid:
:no-pdf:
INPUT

output = xmlpp(<<~"OUTPUT")
Expand All @@ -36,8 +35,12 @@
OUTPUT

FileUtils.rm_f "test.html"
FileUtils.rm_f "test.doc"
FileUtils.rm_f "test.pdf"
expect(xmlpp(strip_guid(Asciidoctor.convert(input, backend: :iho, header_footer: true)))).to be_equivalent_to output
expect(File.exist?("test.html")).to be true
expect(File.exist?("test.doc")).to be true
expect(File.exist?("test.pdf")).to be true
end

it "processes default metadata" do
Expand Down
2 changes: 2 additions & 0 deletions spec/isodoc/html_convert_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
:edition=>"2",
:implementeddate=>"2000-01-01",
:issueddate=>"XXX",
:lang=>"en",
:logo=>"#{File.join(logoloc, 'logo.png')}",
:logo_paths=>["#{File.join(logoloc, 'image001.png')}", "#{File.join(logoloc, 'image002.png')}", "#{File.join(logoloc, 'image003.png')}"],
:metadata_extensions=>{"doctype"=>"standard", "editorialgroup"=>{"committee_type"=>"A", "committee"=>"TC"}, "security"=>"Client Confidential", "commentperiod"=>{"from"=>"2010", "to"=>"2011"}},
Expand All @@ -92,6 +93,7 @@
:receiveddate=>"XXX",
:revdate=>"2000-01-01",
:revdate_monthyear=>"January 2000",
:script=>"Latn",
:series=>"Bathymetric",
:seriesabbr=>"B",
:stage=>"Working Draft",
Expand Down

0 comments on commit 78a8f9b

Please sign in to comment.