[mocha-developer] Foo.never.expects(:bar)

Jay Fields jay at jayfields.com
Fri Dec 21 22:01:04 EST 2007


Hello James et al.

I was writing a bit of code yesterday and I found myself looking for
Foo.never.expects(:bar)
Instead of
Foo.expects(:bar).never

I think the first version is more syntactically friendly.  That said,  
I haven't looked at what it would take to make this work.

Thoughts?

Cheers, Jay


More information about the mocha-developer mailing list