From 836883db3c994e23c01fad5ba220cb9685703834 Mon Sep 17 00:00:00 2001 From: vemv Date: Wed, 5 Jul 2023 15:26:57 +0200 Subject: [PATCH] Update tests --- cider.el | 1 - test/cider-tests.el | 26 +++++++++++++------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/cider.el b/cider.el index 2e0325d75..2d70c4ae5 100644 --- a/cider.el +++ b/cider.el @@ -1558,7 +1558,6 @@ The new command will be a `java -cp ...' invocation." (if (or (not c) (string-empty-p c)) (progn - ;; message see .emacs.d/cider-error.log (message "CIDER enrich-classpath failed. Falling back to the original command. `.emacs.d/cider-error.log' may contain debug information.") command) (progn diff --git a/test/cider-tests.el b/test/cider-tests.el index 8729331de..4642ca1a4 100644 --- a/test/cider-tests.el +++ b/test/cider-tests.el @@ -154,8 +154,8 @@ " -- update-in :plugins conj " (shell-quote-argument "[cider/cider-nrepl \"0.28.5\"]") " -- update-in :plugins conj " - (shell-quote-argument "[mx.cider/enrich-classpath \"1.9.0\"]") - " -- update-in :middleware conj cider.enrich-classpath/middleware" + (shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.11.2\"]") + " -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware" " -- repl :headless"))) (it "can inject dependencies in a lein project with an exclusion" @@ -167,8 +167,8 @@ " -- update-in :plugins conj " (shell-quote-argument "[cider/cider-nrepl \"0.28.5\"]") " -- update-in :plugins conj " - (shell-quote-argument "[mx.cider/enrich-classpath \"1.9.0\"]") - " -- update-in :middleware conj cider.enrich-classpath/middleware" + (shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.11.2\"]") + " -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware" " -- repl :headless"))) (it "can inject dependencies in a lein project with multiple exclusions" @@ -179,8 +179,8 @@ " -- update-in :plugins conj " (shell-quote-argument "[cider/cider-nrepl \"0.28.5\"]") " -- update-in :plugins conj " - (shell-quote-argument "[mx.cider/enrich-classpath \"1.9.0\"]") - " -- update-in :middleware conj cider.enrich-classpath/middleware" + (shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.11.2\"]") + " -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware" " -- repl :headless"))) (it "can inject dependencies in a boot project" @@ -218,8 +218,8 @@ " -- update-in :plugins conj " (shell-quote-argument "[cider/cider-nrepl \"0.28.5\"]") " -- update-in :plugins conj " - (shell-quote-argument "[mx.cider/enrich-classpath \"1.9.0\"]") - " -- update-in :middleware conj cider.enrich-classpath/middleware" + (shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.11.2\"]") + " -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware" " -- repl :headless"))) (it "can inject dependencies in a boot project" @@ -253,8 +253,8 @@ " -- update-in :plugins conj " (shell-quote-argument "[cider/cider-nrepl \"0.28.5\"]") " -- update-in :plugins conj " - (shell-quote-argument "[mx.cider/enrich-classpath \"1.9.0\"]") - " -- update-in :middleware conj cider.enrich-classpath/middleware" + (shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.11.2\"]") + " -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware" " -- repl :headless"))) (it "can concat in a boot project" (expect (cider-inject-jack-in-dependencies "-C -o" "repl -s wait" 'boot) @@ -322,7 +322,7 @@ (spy-on 'cider-jack-in-normalized-lein-plugins :and-return-value '(("refactor-nrepl" "2.0.0") ("cider/cider-nrepl" "0.28.5") - ("mx.cider/enrich-classpath" "1.9.0"))) + ("mx.cider/lein-enrich-classpath" "1.11.2"))) (setq-local cider-jack-in-dependencies-exclusions '()) (setq-local cider-enrich-classpath t)) (it "uses them in a lein project" @@ -334,8 +334,8 @@ " -- update-in :plugins conj " (shell-quote-argument "[cider/cider-nrepl \"0.28.5\"]") " -- update-in :plugins conj " - (shell-quote-argument "[mx.cider/enrich-classpath \"1.9.0\"]") - " -- update-in :middleware conj cider.enrich-classpath/middleware" + (shell-quote-argument "[mx.cider/lein-enrich-classpath \"1.11.2\"]") + " -- update-in :middleware conj cider.enrich-classpath.plugin-v2/middleware" " -- repl :headless")))) (describe "when the middleware lists have been normalized (Boot)"