Last active
December 15, 2015 15:28
-
-
Save jaycfields/5281648 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn in-context | |
"rebind a var, expecations are run in the defined context" | |
{:expectations-options :in-context} | |
[work] | |
(with-redefs [some-src/a-fn-to-be-rebound (constantly :a-rebound-val)] | |
(work))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment