aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStig Brautaset <sbrautaset@laterpay.net>2016-02-26 11:01:31 +0000
committerStig Brautaset <sbrautaset@laterpay.net>2016-02-26 11:01:31 +0000
commita09dc42bb46cd3e6509713931e52a8394590a6f0 (patch)
treea2bfadad85ccf7298797a20a57b0408f8f2e27cf /test
parent9dfb5a213e515fadca0b013e743f2be262538703 (diff)
Make code block use language "none" if not in JIRA's supported set
Diffstat (limited to 'test')
-rw-r--r--test/ox-jira-test.el13
-rw-r--r--test/ox-jira-test.org13
2 files changed, 24 insertions, 2 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el
index dd435d0..c83a9df 100644
--- a/test/ox-jira-test.el
+++ b/test/ox-jira-test.el
@@ -104,7 +104,7 @@ fum" 'jira))))
- [X] fo" 'jira))))
(ert-deftest ox-jira-test/src-blocks ()
- (should (equal "{code:sh}
+ (should (equal "{code:none}
echo hello
# echo world
{code}
@@ -112,6 +112,17 @@ echo hello
echo hello
# echo world
#+end_src
+" 'jira)))
+ (should (equal "{code:sql}
+BEGIN;
+SELECT NOW();
+END;
+{code}
+" (org-export-string-as "#+begin_src sql
+ BEGIN;
+ SELECT NOW();
+ END;
+ #+end_src
" 'jira))))
(ert-deftest ox-jira-test/example-blocks ()
diff --git a/test/ox-jira-test.org b/test/ox-jira-test.org
index 39264d6..f11f3c9 100644
--- a/test/ox-jira-test.org
+++ b/test/ox-jira-test.org
@@ -202,7 +202,7 @@
#+BEGIN_SRC emacs-lisp
(ert-deftest ox-jira-test/src-blocks ()
- (should (equal "{code:sh}
+ (should (equal "{code:none}
echo hello
# echo world
{code}
@@ -210,6 +210,17 @@
echo hello
# echo world
,#+end_src
+ " 'jira)))
+ (should (equal "{code:sql}
+ BEGIN;
+ SELECT NOW();
+ END;
+ {code}
+ " (org-export-string-as "#+begin_src sql
+ BEGIN;
+ SELECT NOW();
+ END;
+ ,#+end_src
" 'jira))))
#+END_SRC