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

Jonathan Leighton j at jonathanleighton.com
Sat Dec 22 11:22:35 EST 2007


+1 for that if it's straightforward to implement.

On Fri, 2007-12-21 at 19:01 -0800, Jay Fields wrote:
> 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
> _______________________________________________
> mocha-developer mailing list
> mocha-developer at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mocha-developer
> 
-- 
Jonathan Leighton, Web Developer
http://jonathanleighton.com/



More information about the mocha-developer mailing list