Permalink
Browse files

Adds docstrings and :added metadata.

  • Loading branch information...
1 parent 66953a6 commit 8151cc7289635cd72d6a0206b1d0a860cf4f2ba2 @pjstadig committed Mar 12, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/conjecture/core.clj
View
@@ -350,7 +350,7 @@
"Add file and line information to a test result and call report.
If you are writing a custom assert-expr method, call this function
to pass test results to report."
- {:added "1.2"}
+ {:added "0.1.0"}
[m]
(report
(case
@@ -685,7 +685,11 @@
(require 'conjecture.singleton-fixtures)
(catch FileNotFoundException _)))
-(defn use-singleton-fixtures [& args]
+(defn use-singleton-fixtures
+ "Wrap the entire test run in a fixture function to perform setup and
+ teardown."
+ {:added "0.4.0"}
+ [& args]
(when-not (= (ns-name *ns*) 'conjecture.singleton-fixtures)
(throw (Exception. (str "Singletons fixtures may only be defined in the "
"conjecture.singleton-fixtures namespace"))))

0 comments on commit 8151cc7

Please sign in to comment.