From 0025a0b1c7cc18fa3740910093aec159847b6af7 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 12 Oct 2014 23:18:40 +0200 Subject: [PATCH] ox: Fix failing test * testing/lisp/test-ox.el (test-org-export/footnotes): Fix test. --- testing/lisp/test-ox.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/testing/lisp/test-ox.el b/testing/lisp/test-ox.el index 7139dd490..9a0e787f5 100644 --- a/testing/lisp/test-ox.el +++ b/testing/lisp/test-ox.el @@ -1532,10 +1532,9 @@ Paragraph[fn:1]" (org-export-backend-transcoders backend))) (forward-line) (org-export-as backend 'subtree))))) - ;; 6. Footnotes without a definition should be provided a fallback - ;; definition. - (should - (org-test-with-parsed-data "[fn:1]" + ;; 6. Footnotes without a definition should throw an error. + (should-error + (org-test-with-parsed-data "Text[fn:1]" (org-export-get-footnote-definition (org-element-map tree 'footnote-reference 'identity info t) info))) ;; 7. Footnote section should be ignored in TOC and in headlines