(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)))))
Used in 0 other vars
Comments top
No comments for expect*. Log in to add a comment.