Skip to content

Commit

Permalink
Move the classpath test
Browse files Browse the repository at this point in the history
It was running pretty early, which might be the reason why this test wasn't failing, as expected.
  • Loading branch information
vemv committed Apr 5, 2021
1 parent de3231e commit 2fd504e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/classpath_test.clj

This file was deleted.

5 changes: 5 additions & 0 deletions test/clj/cider/nrepl/middleware/classpath_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(:require
[cider.nrepl.test-session :as session]
[cider.nrepl.middleware.classpath :refer :all]
[clojure.java.classpath]
[clojure.test :refer :all]))

(use-fixtures :each session/session-fixture)
Expand All @@ -25,3 +26,7 @@
(deftest file-url?-test
(is (file-url? (.toURL (.toURI (java.io.File. "")))))
(is (not (file-url? (java.net.URL. "jar:file:/tmp/test.jar!/BOOT-INF/classes")))))

(deftest works
(testing "The presence of the cider-nrepl library does not affect the clojure.java.classpath library, particularly on JDK11"
(is (seq (clojure.java.classpath/classpath-directories)))))

0 comments on commit 2fd504e

Please sign in to comment.