-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Description
I'd like to be able to define prerequisite with a dynamic argument and access this argument in the mocking value. For instance, I'd like to be able to write something like this:
(defn bar [x])
(defn foo [x]
(bar x))
(fact
(foo 2) => 2
(provided (bar anything) => anything))The problem in this code is that the anything after the arrow doesn't have the value of the anything before the arrow.
Does my request make sense?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels