From 40864852d9f0996c4f755377a8326f2cbae417ec Mon Sep 17 00:00:00 2001 From: Archenoth Date: Tue, 11 Aug 2015 21:18:44 -0600 Subject: [PATCH 2/2] Add test that basic Ruby evaluation works with ob-ruby This will also test that the string escape schenanigans are fixed. --- testing/lisp/test-ob-ruby.el | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/testing/lisp/test-ob-ruby.el b/testing/lisp/test-ob-ruby.el index eb5233b..576cb13 100644 --- a/testing/lisp/test-ob-ruby.el +++ b/testing/lisp/test-ob-ruby.el @@ -21,6 +21,23 @@ (unless (featurep 'ob-ruby) (signal 'missing-test-dependency "Support for Ruby code blocks")) +(ert-deftest test-ob-ruby/basic-evaluation () + "Test that basic evaluation works." + (should (equal (org-test-with-temp-text "#+begin_src ruby + 2 + 2 +#+end_src" + (org-babel-execute-maybe) + (substring-no-properties + (buffer-string))) + "#+begin_src ruby + 2 + 2 +#+end_src + +#+RESULTS: +: 4 + +"))) + (ert-deftest test-ob-ruby/session-output-1 () (should (equal (org-test-with-temp-text "#+begin_src ruby :session :results output s = \"1\" -- 2.5.0