From 35493b8f069dd2ed6c3ca75bac30f0ca375409e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 25 Dec 2012 04:25:16 +0000 Subject: [PATCH] Fix: enclose this test in WITH-TEMP-BUFFER --- yasnippet-tests.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/yasnippet-tests.el b/yasnippet-tests.el index 0af1452..6d57d86 100644 --- a/yasnippet-tests.el +++ b/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