Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vemv committed Jul 5, 2023
1 parent bd9a660 commit 836883d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
1 change: 0 additions & 1 deletion cider.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 13 additions & 13 deletions test/cider-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand All @@ -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)"
Expand Down

0 comments on commit 836883d

Please sign in to comment.