Skip to content

Commit

Permalink
Fix: correct expectation for this test in batch-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotavora committed Nov 6, 2012
1 parent 1774d7c commit f836621
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions yasnippet-tests.el
Expand Up @@ -198,6 +198,12 @@
(should (string= (yas--buffer-contents) "if condition\naaa\nelse\nbbb\nend")))))

(ert-deftest another-example-for-issue-271 ()
;; expect this to fail in batch mode since `region-active-p' doesn't
;; used by `yas-expand-snippet' doesn't make sense in that context.
;;
:expected-result (if noninteractive
:failed
:passed)
(with-temp-buffer
(yas-minor-mode 1)
(let ((snippet "\\${${1:1}:`yas/selected-text`}"))
Expand Down

0 comments on commit f836621

Please sign in to comment.