Skip to content

Commit

Permalink
rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Aug 15, 2024
1 parent acb831a commit c73db51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/metanorma/refs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@
out = Nokogiri::XML(Asciidoctor.convert(input, *OPTIONS))
expect(out.xpath("//xmlns:references/xmlns:bibitem/@id")
.map(&:value))
.to be_equivalent_to ["ref3", "ref6", "ref5", "ref2", "ref4", "ref1"]
.to be_equivalent_to ["ref4", "ref1", "ref3", "ref6", "ref5", "ref2"]
end

VCR.use_cassette "sortrefs" do
out = Nokogiri::XML(Asciidoctor.convert(input
.sub("== Bibliography", "== Normative References"), *OPTIONS))
expect(out.xpath("//xmlns:references/xmlns:bibitem/@id")
.map(&:value))
.to be_equivalent_to ["ref3", "ref6", "ref5", "ref2", "ref4", "ref1"]
.to be_equivalent_to ["ref4", "ref1", "ref3", "ref6", "ref5", "ref2"]
end
end
end

0 comments on commit c73db51

Please sign in to comment.