mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Fix: enclose this test in WITH-TEMP-BUFFER
This commit is contained in:
parent
74e8f43f06
commit
35493b8f06
@ -96,14 +96,14 @@
|
|||||||
"brother from another bla!"))))
|
"brother from another bla!"))))
|
||||||
|
|
||||||
(ert-deftest mirrors-adjacent-to-fields-with-nested-mirrors ()
|
(ert-deftest mirrors-adjacent-to-fields-with-nested-mirrors ()
|
||||||
(with-temp-buffer)
|
(with-temp-buffer
|
||||||
(yas-minor-mode 1)
|
(yas-minor-mode 1)
|
||||||
(yas-expand-snippet "<%= f.submit \"${1:Submit}\"${2:$(and (yas-text) \", :disable_with => '\")}${2:$1ing...}${2:$(and (yas-text) \"'\")} %>")
|
(yas-expand-snippet "<%= f.submit \"${1:Submit}\"${2:$(and (yas-text) \", :disable_with => '\")}${2:$1ing...}${2:$(and (yas-text) \"'\")} %>")
|
||||||
(should (string= (yas--buffer-contents)
|
(should (string= (yas--buffer-contents)
|
||||||
"<%= f.submit \"Submit\", :disable_with => 'Submiting...' %>"))
|
"<%= f.submit \"Submit\", :disable_with => 'Submiting...' %>"))
|
||||||
(ert-simulate-command `(yas-mock-insert "Send"))
|
(ert-simulate-command `(yas-mock-insert "Send"))
|
||||||
(should (string= (yas--buffer-contents)
|
(should (string= (yas--buffer-contents)
|
||||||
"<%= f.submit \"Send\", :disable_with => 'Sending...' %>")))
|
"<%= f.submit \"Send\", :disable_with => 'Sending...' %>"))))
|
||||||
|
|
||||||
(ert-deftest deep-nested-mirroring-issue-351 ()
|
(ert-deftest deep-nested-mirroring-issue-351 ()
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user