Permalink
Browse files
remove trailing whitespace
- Loading branch information...
Showing
with
5 additions
and
5 deletions.
-
+5
−5
ring-core/test/ring/util/response_test.clj
|
|
@@ -13,9 +13,9 @@ |
|
|
(try
|
|
|
(.setContextClassLoader current-thread# new-loader#)
|
|
|
~@forms
|
|
|
- (finally
|
|
|
+ (finally
|
|
|
(.setContextClassLoader current-thread# original-loader#)))))
|
|
|
-
|
|
|
+
|
|
|
(deftest test-redirect
|
|
|
(is (= {:status 302 :headers {"Location" "http://google.com"} :body ""}
|
|
|
(redirect "http://google.com"))))
|
|
|
@@ -42,14 +42,14 @@ |
|
|
(let [resp (resource-response "response_test.clj" {:root "/ring/util"})]
|
|
|
(is (.startsWith (slurp (resp :body))
|
|
|
"(ns ring.util.response-test"))))
|
|
|
-
|
|
|
+
|
|
|
(deftest test-resource-with-child-classloader
|
|
|
(let [resource (java.io.File/createTempFile "response_test" nil)]
|
|
|
- (org.apache.commons.io.FileUtils/writeStringToFile resource "just testing")
|
|
|
+ (org.apache.commons.io.FileUtils/writeStringToFile resource "just testing")
|
|
|
(with-classloader [(.getParentFile resource)]
|
|
|
(let [resp (resource-response (.getName resource))]
|
|
|
(is (= (slurp (resp :body))
|
|
|
"just testing"))))))
|
|
|
-
|
|
|
+
|
|
|
(deftest test-missing-resource
|
|
|
(is (nil? (resource-response "/missing/resource.clj"))))
|
0 comments on commit
c0e915c