Namespaces

 
  • (expect* call-map expectations)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source midje/unprocessed.clj:138 top

(defn expect* [call-map expectations]
  "The core function in unprocessed Midje. Takes a map describing a call and a 
   list of maps, each of which describes a secondary call the first call is supposed to 
   make. See the documentation at http://github.com/marick/Midje."
  (with-bindings (binding-map expectations)
     (stopping-upon-mock-failures
      (let [code-under-test-result (eagerly ((call-map :function-under-test)))]
	(check-call-counts expectations)
	(check-result code-under-test-result call-map expectations)))))
Vars in midje.unprocessed/expect*: defn let with-bindings
Used in 0 other vars

Comments top

No comments for expect*. Log in to add a comment.