Closed hlship closed 9 years ago
I suspect this is just a miscommunication. Speclj describe/context blocks try to be helpful by throwing Exceptions when they contain something that is NOT spec component, like nil. That's why you're getting the error.
You can get the behavior you want. Here's an example:
(defn my-template [expected input](it %28str "checks " input) (should= expected input)))
(describe "specs" (my-template 1 1) (my-template 1 2) )
(run-specs)
Am closing. Please reopen if I misunderstood.
I'd like to be able to do the following:
That is, easily generate a series of examples (
it
blocks) from templates. Currently, when I do that:I'm not quite sure where the
nil
is coming from.