Skip to content

Commit

Permalink
plural form of future-fact and friends
Browse files Browse the repository at this point in the history
  • Loading branch information
marick committed Dec 6, 2010
1 parent 899697e commit 24e112e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/midje/sweet.clj
Expand Up @@ -52,6 +52,10 @@
:position (midje.util.file-position/line-number-known ~lineno)})))

(defmacro future-fact [& forms] (future-fact-1 &form))
(defmacro future-facts [& forms] (future-fact-1 &form))
(defmacro pending-fact [& forms] (future-fact-1 &form))
(defmacro pending-facts [& forms] (future-fact-1 &form))
(defmacro incipient-fact [& forms] (future-fact-1 &form))
(defmacro incipient-facts [& forms] (future-fact-1 &form))
(defmacro antiterminologicaldisintactitudinarian-fact [& forms] (future-fact-1 &form))
(defmacro antiterminologicaldisintactitudinarian-facts [& forms] (future-fact-1 &form))
4 changes: 2 additions & 2 deletions test/behaviors/t_setup_teardown.clj
Expand Up @@ -80,8 +80,8 @@
(+ (f x) 2) => 4)
(fact (only-passes? 1) => truthy)))

(future-fact "users can make functions that return environments"
(against-background (x-1-wrapper))
(future-fact "users can make functions that return before/after/around descriptions"
(against-background (x-is-available-with-value-1))
x => 1)

; ========
Expand Down

0 comments on commit 24e112e

Please sign in to comment.