From 86ef9fd419fcf64349de121e8ba08c451fd89dee Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 25 Jun 2017 20:23:50 -0600 Subject: use Set comparison to assert keys in catalog --- test/document_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/document_test.rb b/test/document_test.rb index 39317b29..ee9cccaa 100644 --- a/test/document_test.rb +++ b/test/document_test.rb @@ -1743,7 +1743,7 @@ content{blank}footnote:[commentary] doc = document_from_string input refute_nil doc.catalog - assert_equal %w(footnotes ids images includes indexterms links), doc.catalog.keys.map(&:to_s).sort + assert_equal [:footnotes, :ids, :images, :includes, :indexterms, :links].to_set, doc.catalog.keys.to_set assert_same doc.catalog, doc.references assert_same doc.catalog[:footnotes], doc.references[:footnotes] assert_same doc.catalog[:ids], doc.references[:ids] -- cgit v1.2.3