他の名前空間の他の 2 つの関数を使用する関数をテストしています。
(fact "a test"
(let [result (function-that-uses-functions-from-other-namespace)]
result => truthy))
他の名前空間から関数をスタブ化したいのですが、テストの作成に問題があります。
(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"))
しかし、このアプローチはうまくいかないようです。ヒントはありますか?Let 節で提供された midje を使用すると、メソッドがスタブ化されない