From c73db51194dc0124e3b7d1a91fd5e5f9fa3eed9a Mon Sep 17 00:00:00 2001 From: Nick Nicholas Date: Fri, 16 Aug 2024 00:45:20 +1000 Subject: [PATCH] rspec --- spec/metanorma/refs_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/metanorma/refs_spec.rb b/spec/metanorma/refs_spec.rb index 279d39e..e2d0e11 100644 --- a/spec/metanorma/refs_spec.rb +++ b/spec/metanorma/refs_spec.rb @@ -71,7 +71,7 @@ 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 @@ -79,7 +79,7 @@ .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