Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix: enclose this test in WITH-TEMP-BUFFER

  • Loading branch information...
commit 35493b8f069dd2ed6c3ca75bac30f0ca375409e4 1 parent 74e8f43
@capitaomorte authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 yasnippet-tests.el
View
16 yasnippet-tests.el
@@ -96,14 +96,14 @@
"brother from another bla!"))))
(ert-deftest mirrors-adjacent-to-fields-with-nested-mirrors ()
- (with-temp-buffer)
- (yas-minor-mode 1)
- (yas-expand-snippet "<%= f.submit \"${1:Submit}\"${2:$(and (yas-text) \", :disable_with => '\")}${2:$1ing...}${2:$(and (yas-text) \"'\")} %>")
- (should (string= (yas--buffer-contents)
- "<%= f.submit \"Submit\", :disable_with => 'Submiting...' %>"))
- (ert-simulate-command `(yas-mock-insert "Send"))
- (should (string= (yas--buffer-contents)
- "<%= f.submit \"Send\", :disable_with => 'Sending...' %>")))
+ (with-temp-buffer
+ (yas-minor-mode 1)
+ (yas-expand-snippet "<%= f.submit \"${1:Submit}\"${2:$(and (yas-text) \", :disable_with => '\")}${2:$1ing...}${2:$(and (yas-text) \"'\")} %>")
+ (should (string= (yas--buffer-contents)
+ "<%= f.submit \"Submit\", :disable_with => 'Submiting...' %>"))
+ (ert-simulate-command `(yas-mock-insert "Send"))
+ (should (string= (yas--buffer-contents)
+ "<%= f.submit \"Send\", :disable_with => 'Sending...' %>"))))
(ert-deftest deep-nested-mirroring-issue-351 ()
(with-temp-buffer
Please sign in to comment.
Something went wrong with that request. Please try again.