I'm testing a function that uses two other functions from other namespace.
(fact "a test"
(let [result (function-that-uses-functions-from-other-namespace)]
result => truthy))
I want to stub out the functions from other namespace and I'm having problems writing the test.
(fact "a test"
(let [result (function-that-uses-functions-from-other-namespace)]
(function-that-uses-functions-from-other-namespace)
(provided (other-namespace/function1 "parameter") => "stub_response"))
but this approach don't seem to work. Any hints? Is it simply the case of let being evaluated before checkables as suggested in Using midje provided in a let clause doesn't stub methods