diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-09-06 20:18:57 +0100 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-09-06 20:19:29 +0100 |
commit | 6636215ac2e2a2e2c449db36b25d7dcb2a5b30b9 (patch) | |
tree | 73a1dc33921b1858692ff9721320154f15b22764 /test | |
parent | 173ed9a9a06cb1a12c4fa0354234fdddafcca637 (diff) |
Axe the cider-buffer-connection variable
Diffstat (limited to 'test')
-rw-r--r-- | test/cider-tests.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/cider-tests.el b/test/cider-tests.el index 348896ae..c16082aa 100644 --- a/test/cider-tests.el +++ b/test/cider-tests.el @@ -467,13 +467,14 @@ (ert-deftest cider-extract-designation-from-current-repl-buffer () (with-temp-buffer - (let* ((connection-buffer (current-buffer)) - (cider-connections (list connection-buffer))) + (let* ((cider-connections (list (current-buffer)))) (rename-buffer "*cider-repl bob*") (with-temp-buffer (should (equal "bob" (cider-extract-designation-from-current-repl-buffer))) (rename-buffer "*cider-repl apa*") - (setq cider-buffer-connection (current-buffer)) + (push (current-buffer) cider-connections) + (should (equal "apa" (cider-extract-designation-from-current-repl-buffer))) + (setq-local cider-connections (list (current-buffer))) (should (equal "apa" (cider-extract-designation-from-current-repl-buffer))))))) (ert-deftest cider-extract-designation-from-current-repl-buffer-no-designation () |