diff options
author | Stuart Halloway <stu@thinkrelevance.com> | 2009-08-25 21:36:57 -0400 |
---|---|---|
committer | Stuart Halloway <stu@thinkrelevance.com> | 2009-08-25 21:36:57 -0400 |
commit | 75e179dd393a4f6f101f7958191461dcd398cbcc (patch) | |
tree | 8f682a8537e963983918793eb1797672f31c34ac /src/clojure/contrib/test_contrib/expect_test/util.clj | |
parent | 36f995f88d31a23d509c11fab889887d79a4a768 (diff) |
simplifying expect_test file structure
Diffstat (limited to 'src/clojure/contrib/test_contrib/expect_test/util.clj')
-rw-r--r-- | src/clojure/contrib/test_contrib/expect_test/util.clj | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/clojure/contrib/test_contrib/expect_test/util.clj b/src/clojure/contrib/test_contrib/expect_test/util.clj deleted file mode 100644 index a7f0fea9..00000000 --- a/src/clojure/contrib/test_contrib/expect_test/util.clj +++ /dev/null @@ -1,8 +0,0 @@ -(ns clojure.contrib.test-contrib.expect-test.util - (:use clojure.test)) - -(defmacro assert-called [fn-name called? & body] - `(let [called-status?# (atom false)] - (binding [~fn-name (fn [& args#] (swap! called-status?# (fn [& args#] true)))] ~@body) - (is (= ~called? @called-status?#)))) - |