Permalink
Browse files

remove trailing whitespace

  • Loading branch information...
1 parent 6cb0ac5 commit c0e915cd16e46607504d885a8a0afbf1dcbcf445 @mmcgrana committed Nov 23, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 ring-core/test/ring/util/response_test.clj
View
10 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

Please sign in to comment.