1 ;;; test-ob-ruby.el --- tests for ob-ruby.el
3 ;; Copyright (c) 2013-2015 Oleh Krehel
4 ;; Authors: Oleh Krehel
6 ;; This program is free software; you can redistribute it and/or modify
7 ;; it under the terms of the GNU General Public License as published by
8 ;; the Free Software Foundation, either version 3 of the License, or
9 ;; (at your option) any later version.
11 ;; This program is distributed in the hope that it will be useful,
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;; GNU General Public License for more details.
16 ;; You should have received a copy of the GNU General Public License
17 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
20 (org-test-for-executable "ruby")
21 (unless (featurep 'ob-ruby
)
22 (signal 'missing-test-dependency
"Support for Ruby code blocks"))
24 (ert-deftest test-ob-ruby
/session-output-1
()
25 (should (equal (org-test-with-temp-text "#+begin_src ruby :session :results output
31 (org-babel-execute-maybe)
32 (substring-no-properties
34 "#+begin_src ruby :session :results output
45 (ert-deftest test-ob-ruby
/session-output-2
()
46 (should (equal (org-test-with-temp-text "#+begin_src ruby :session :results output
50 (org-babel-execute-maybe)
51 (substring-no-properties
53 "#+begin_src ruby :session :results output
62 (ert-deftest test-ob-ruby
/session-output-3
()
63 (should (equal (org-test-with-temp-text "#+begin_src ruby :session :results output
66 (org-babel-execute-maybe)
67 (substring-no-properties
69 "#+begin_src ruby :session :results output
78 (provide 'test-ob-ruby
)
80 ;;; test-ob-ruby.el ends here