Re: mocking in clojure

2009-03-16 Thread Allen Rohner
On Mar 13, 3:35 pm, Stephen C. Gilardi squee...@mac.com wrote: On Mar 13, 2009, at 4:10 PM, Stuart Sierra wrote: Hi Allen, Sorry I haven't kept up with this. I think, though, that it's best to have it as a standalone library in clojure-contrib, so that people can use it with other

mocking in clojure

2009-03-13 Thread Korny Sietsma
Hi folks - are there any frameworks out there for mocking? Stubbing functions is pretty straightforward (and I see that fact comes with a stubbing function built in), but I'd really like something that can do mocking and mock expectations - something similar to stub, but with checking that the

Re: mocking in clojure

2009-03-13 Thread Matt Clark
test-expect actually only depends on test-is for its own tests, and I'm planning on breaking the tests out into their own file. I thought it was an interesting idea having the tests and code in the same file, but in practice it ended up being less attractive than anticipated. - Matt On Mar 13,

Re: mocking in clojure

2009-03-13 Thread Allen Rohner
Any other options out there? I posted a patch for test-is a while ago that never made it in, and I don't know why. http://groups.google.com/group/clojure/browse_frm/thread/883d4833f869f764/47a45325c8f29599?lnk=gstq=test-is+expect+patch#47a45325c8f29599 The patch handles creating stub

Re: mocking in clojure

2009-03-13 Thread Stuart Sierra
Hi Allen, Sorry I haven't kept up with this. I think, though, that it's best to have it as a standalone library in clojure-contrib, so that people can use it with other testing frameworks if they want to. -Stuart On Mar 13, 3:20 pm, Allen Rohner aroh...@gmail.com wrote: Any other options out

Re: mocking in clojure

2009-03-13 Thread Stephen C. Gilardi
On Mar 13, 2009, at 4:10 PM, Stuart Sierra wrote: Hi Allen, Sorry I haven't kept up with this. I think, though, that it's best to have it as a standalone library in clojure-contrib, so that people can use it with other testing frameworks if they want to. -Stuart Allen, I see you have a