Permalink
Browse files

Test stacktrace app takes an argument to prevent test from blowing up.

  • Loading branch information...
1 parent f2ca099 commit 1380a76761723cb5cb16b6f15df6b3711658d870 @mmcgrana committed Oct 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ring-devel/test/ring/middleware/stacktrace_test.clj
View
2 ring-devel/test/ring/middleware/stacktrace_test.clj
@@ -2,7 +2,7 @@
(:use clojure.test
ring.middleware.stacktrace))
-(def app (wrap-stacktrace #(throw (Exception. "fail"))))
+(def app (wrap-stacktrace (fn [_] (throw (Exception. "fail")))))
(def html-req {})
(def js-req {:headers {"accept" "text/javascript"}})

0 comments on commit 1380a76

Please sign in to comment.