Permalink
Browse files

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

  • Loading branch information...
1 parent 9099766 commit 4c9f3e925616f31dc28b5ee5a706d87437f40a8d @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 4c9f3e9

Please sign in to comment.