Code re-use in Speclj

2014-02-04 Thread david
You can also use let instead of with. If you have multiple tests inside let wrap them in a context call. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members a

Code re-use in Speclj

2014-02-04 Thread david
"context" might be what you're looking for. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsu

Code re-use in Speclj

2014-02-03 Thread Glen Mailer
My usual approach is to use a macro that expands to the appropriate (it) forms, or have a helper function that is called inside each (it) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com No

Code re-use in Speclj

2014-02-03 Thread Karsten Schmidt
Hi, I've been getting quite excited about integrating Speclj via its auto-runner into my mixed CLJ/CLJS Org-mode/Babel setup, but now feeling a bit lost how to go about wrapping a number of test characteristics ("(it)" forms in speclj parlance) into re-usable units. In the assertions below I'd lik