summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2015-08-13 19:27:09 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2015-08-13 19:27:09 +0300
commitc2bc28af8dfb676af45fbc1aef3ebde2e27ce1f5 (patch)
treeeb45c04802745658d5aa7df4d8870b41d42cd724 /test
parent475c7d69828c2cd47c4ffe4ccac6c342e98d249a (diff)
Eliminate some code duplication
Diffstat (limited to 'test')
-rw-r--r--test/cider-tests.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cider-tests.el b/test/cider-tests.el
index 2b9898e0..94ba2849 100644
--- a/test/cider-tests.el
+++ b/test/cider-tests.el
@@ -211,7 +211,7 @@
(cider-rotate-default-connection)
(should (equal (buffer-name a) (nrepl-default-connection-buffer))))))))
-(ert-deftest test-cider--current-connection-info ()
+(ert-deftest test-cider--connection-info ()
(with-temp-buffer
(noflet ((cider--java-version () "1.7")
(cider--clojure-version () "1.5.1")
@@ -219,16 +219,16 @@
(setq-local nrepl-endpoint '("localhost" 4005))
(setq-local nrepl-project-dir "proj")
(should (string= (cider--connection-info (buffer-name (current-buffer)))
- "Active nREPL connection: proj@localhost:4005 (Java 1.7, Clojure 1.5.1, nREPL 0.2.1)")))))
+ "proj@localhost:4005 (Java 1.7, Clojure 1.5.1, nREPL 0.2.1)")))))
-(ert-deftest test-cider-current-connection-info-no-project ()
+(ert-deftest test-cider-connection-info-no-project ()
(with-temp-buffer
(noflet ((cider--java-version () "1.7")
(cider--clojure-version () "1.5.1")
(cider--nrepl-version () "0.2.1"))
(setq-local nrepl-endpoint '("localhost" 4005))
(should (string= (cider--connection-info (buffer-name (current-buffer)))
- "Active nREPL connection: <no project>@localhost:4005 (Java 1.7, Clojure 1.5.1, nREPL 0.2.1)")))))
+ "<no project>@localhost:4005 (Java 1.7, Clojure 1.5.1, nREPL 0.2.1)")))))
(ert-deftest test-nrepl-close ()
(let ((connections (nrepl-connection-buffers)))