Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Jul 22, 2024
1 parent 66b6d98 commit 59e00e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions spec/metanorma/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<sections/>
</ietf-standard>
OUTPUT
expect(Xml::C14n.format(Asciidoctor.convert(input, *OPTIONS)))
.to be_equivalent_to Xml::C14n.format(output)
expect(strip_guid(Xml::C14n.format(Asciidoctor.convert(input, *OPTIONS))))
.to be_equivalent_to strip_guid(Xml::C14n.format(output))
end
end

Expand All @@ -48,8 +48,8 @@
<sections/>
</ietf-standard>
OUTPUT
expect(Xml::C14n.format(Asciidoctor.convert(input, *OPTIONS)))
.to be_equivalent_to Xml::C14n.format(output)
expect(strip_guid(Xml::C14n.format(Asciidoctor.convert(input, *OPTIONS))))
.to be_equivalent_to strip_guid(Xml::C14n.format(output))
expect(File.exist?("test.rfc.xml")).to be true
end

Expand Down Expand Up @@ -455,8 +455,8 @@
<sections/>
</ietf-standard>
OUTPUT
expect(Xml::C14n.format(Asciidoctor.convert(input, *OPTIONS)))
.to be_equivalent_to Xml::C14n.format(output)
expect(strip_guid(Xml::C14n.format(Asciidoctor.convert(input, *OPTIONS))))
.to be_equivalent_to strip_guid(Xml::C14n.format(output))
end

it "processes complex metadata" do
Expand Down
4 changes: 2 additions & 2 deletions spec/metanorma/processor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
end

it "generates IsoDoc XML from a blank document" do
expect(Xml::C14n.format(processor.input_to_isodoc(ASCIIDOC_BLANK_HDR, nil)))
.to be_equivalent_to Xml::C14n.format(<<~"OUTPUT")
expect(strip_guid(Xml::C14n.format(processor.input_to_isodoc(ASCIIDOC_BLANK_HDR, nil))))
.to be_equivalent_to strip_guid(Xml::C14n.format(<<~"OUTPUT"))
#{BLANK_HDR}
<sections/>
</ietf-standard>
Expand Down

0 comments on commit 59e00e5

Please sign in to comment.