Browse files

Capture output during r.h.dump test.

  • Loading branch information...
1 parent b2201d2 commit 440d140f199184e85e278811f502546dd993ecd9 @mmcgrana committed Oct 26, 2010
Showing with 5 additions and 4 deletions.
  1. +5 −4 ring-devel/test/ring/handler/dump_test.clj
View
9 ring-devel/test/ring/handler/dump_test.clj
@@ -13,7 +13,8 @@
:request-method :get})
(deftest test-handle-dump
- (let [{:keys [status]} (handle-dump post-req)]
- (is (= 200 status)))
- (let [{:keys [status]} (handle-dump get-req)]
- (is (= 200 status))))
+ (binding [*out* (java.io.StringWriter.)]
+ (let [{:keys [status]} (handle-dump post-req)]
+ (is (= 200 status)))
+ (let [{:keys [status]} (handle-dump get-req)]
+ (is (= 200 status)))))

0 comments on commit 440d140

Please sign in to comment.