diff options
| author | Stig Brautaset <stig@brautaset.org> | 2016-02-26 08:14:19 +0000 |
|---|---|---|
| committer | Stig Brautaset <stig@brautaset.org> | 2016-02-26 08:14:19 +0000 |
| commit | cbd6b317980a63cdac8124499bab29dee8f0b0ae (patch) | |
| tree | e8fef987cc44a4848dc8c0ed6fba529b8f6ce365 /test | |
| parent | 2103b5779e653a9cb383cfd88e3a56f480c6adfa (diff) | |
Add support for example blocks
Diffstat (limited to 'test')
| -rw-r--r-- | test/ox-jira-test.el | 13 | ||||
| -rw-r--r-- | test/ox-jira-test.org | 22 |
2 files changed, 34 insertions, 1 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 07fc442..a8d250a 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -107,6 +107,19 @@ echo hello #+end_src " 'jira)))) +(ert-deftest ox-jira-test/example-blocks () + (should (equal "{noformat} +stuff that should + not be +formatted +{noformat} +" (org-export-string-as "#+begin_example +stuff that should + not be +formatted +#+end_example +" '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 5752b0c..f54f7c2 100644 --- a/test/ox-jira-test.org +++ b/test/ox-jira-test.org @@ -191,7 +191,27 @@ echo hello # echo world ,#+end_src - " 'jira)))) + " 'jira)))) + #+END_SRC + +** Examples + + I use example blocks for log & config file snippets, and output from + programs. + + #+BEGIN_SRC emacs-lisp + (ert-deftest ox-jira-test/example-blocks () + (should (equal "{noformat} + stuff that should + not be + formatted + {noformat} + " (org-export-string-as "#+begin_example + stuff that should + not be + formatted + ,#+end_example + " 'jira)))) #+END_SRC ** Provide |
