Skip to content

Commit

Permalink
testing/lisp/test-ob-eshell.el: Fix tests
Browse files Browse the repository at this point in the history
* testing/lisp/test-ob-eshell.el (ob-eshell/execute):
(ob-eshell/variables-assignment): Do not expect
`org-babel-execute-src-block' to return the actual inserted src block
string.
  • Loading branch information
yantar92 committed Oct 13, 2022
1 parent 3790bf8 commit 97672ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions testing/lisp/test-ob-eshell.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
"#+begin_src eshell
echo 2
#+end_src"
(org-babel-execute-src-block))
(org-babel-execute-src-block)
(goto-char (org-babel-where-is-src-block-result))
(forward-line)
(buffer-substring-no-properties (point) (line-end-position)))
": 2")))

(ert-deftest ob-eshell/variables-assignment ()
Expand All @@ -45,7 +48,10 @@ echo 2
"#+begin_src eshell :var hi=\"hello, world\"
echo $hi
#+end_src"
(org-babel-execute-src-block))
(org-babel-execute-src-block)
(goto-char (org-babel-where-is-src-block-result))
(forward-line)
(buffer-substring-no-properties (point) (line-end-position)))
": hello, world")))

(ert-deftest ob-eshell/session ()
Expand Down

0 comments on commit 97672ef

Please sign in to comment.