aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStig Brautaset <sbrautaset@laterpay.net>2016-02-25 15:43:27 +0000
committerStig Brautaset <sbrautaset@laterpay.net>2016-02-25 15:43:27 +0000
commit64405259658a20361bb5425ecb5eaa07ef3ae930 (patch)
tree1075b02872ce83d1aff150f883fc073026458e66 /test
parent73814322282ed706635164314ae2e13e6105da84 (diff)
Add support, and simple test, for quotation blocks
JIRA has two forms: - a `bq.` prefix for single-paragraph quotes, and - {quote}fi fo fa fum{quote} for m multi-paragraph quotes We always use the latter, since it's the most general form. I don't know if there's any benefit to the single-paragraph form at all.
Diffstat (limited to 'test')
-rw-r--r--test/ox-jira-test.el12
-rw-r--r--test/ox-jira-test.org17
2 files changed, 29 insertions, 0 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el
index 0ddad5a..7068391 100644
--- a/test/ox-jira-test.el
+++ b/test/ox-jira-test.el
@@ -40,6 +40,18 @@
(should (equal "this is {{inline code}}\n" (org-export-string-as "this is ~inline code~" 'jira)))
(should (equal "this is {{verbatim}} text\n" (org-export-string-as "this is =verbatim= text" 'jira))))
+(ert-deftest ox-jira-test/quotations ()
+ (should (equal "{quote}
+This is a quote.
+
+It can have multiple paragraphs.
+{quote}
+" (org-export-string-as "#+BEGIN_QUOTE
+This is a quote.
+
+It can have multiple paragraphs.
+#+END_QUOTE" 'jira))))
+
(provide 'ox-jira-test)
;;; ox-jira.el-test.el ends here
diff --git a/test/ox-jira-test.org b/test/ox-jira-test.org
index dd832c9..ae46c19 100644
--- a/test/ox-jira-test.org
+++ b/test/ox-jira-test.org
@@ -98,6 +98,23 @@
(should (equal "this is {{verbatim}} text\n" (org-export-string-as "this is =verbatim= text" 'jira))))
#+END_SRC
+ Quotations are a bit more elaborate, so let's test those separately. They
+ can have other text effects inside them too.
+
+ #+BEGIN_SRC emacs-lisp
+ (ert-deftest ox-jira-test/quotations ()
+ (should (equal "{quote}
+ This is a quote.
+
+ It can have multiple paragraphs.
+ {quote}
+ " (org-export-string-as "#+BEGIN_QUOTE
+ This is a quote.
+
+ It can have multiple paragraphs.
+ ,#+END_QUOTE" 'jira))))
+ #+END_SRC
+
*** Provide
Announce that =ox-jira-test= is a feature of the current Emacs.