Creates or associates to an existing expectation hash the :returns key with
a value to be returned by the expectation after a successful invocation
matching its expected arguments (if applicable).
Usage:
(returns ret-value expectation-hash?)
(defn returns
"Creates or associates to an existing expectation hash the :returns key with
a value to be returned by the expectation after a successful invocation
matching its expected arguments (if applicable).
Usage:
(returns ret-value expectation-hash?)"
([val] (returns val {}))
([val expectation-hash] (assoc expectation-hash :returns val)))
Comments top
No comments for returns. Log in to add a comment.