Skip to content

Commit fc01870

Browse files
committed
test tweak: use ring-core-protocols for resource-response test
This way, we do not have to assume that Clojure sources are present in a JAR on the classpath. Signed-off-by: The-Alchemist <karl@digital-alchemy.io>
1 parent 0a36f21 commit fc01870

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ring-core/test/ring/util/test/response.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@
147147
(let [body (:body (resource-response "ring/util/response.clj"))]
148148
(is (instance? File body))
149149
(is (.startsWith (slurp body) "(ns ring.util.response")))
150-
(let [body (:body (resource-response "clojure/java/io.clj"))]
150+
(let [body (:body (resource-response
151+
"META-INF/maven/org.ring-clojure/ring-core-protocols/pom.properties"))]
151152
(is (instance? InputStream body))
152-
(is (.contains (slurp body) "clojure.java.io"))))
153+
(is (.contains (slurp body) "artifactId=ring-core-protocols"))))
153154

154155
(testing "resource is a directory"
155156
(is (nil? (resource-response "/ring/assets"))))

0 commit comments

Comments
 (0)