diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-06-25 20:23:50 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2017-06-25 20:23:50 -0600 |
| commit | 86ef9fd419fcf64349de121e8ba08c451fd89dee (patch) | |
| tree | 2ff7c149fab11030ebce55c7782e326cd76acaf2 /test/document_test.rb | |
| parent | 341b6166dfeb0920594d6d1253bb924fd0401333 (diff) | |
use Set comparison to assert keys in catalog
Diffstat (limited to 'test/document_test.rb')
| -rw-r--r-- | test/document_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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] |
