0.1.1 permalink Arrow_down_16x16
  • (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"
  (with-bindings (binding-map expectations)
      (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.semi-sweet/expect*: defn let with-bindings
Used in 0 other vars

Comments top

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