[mocha-developer] replacement for returning Proc

Justin Perkins justin at spiceworks.com
Tue Jun 12 17:31:55 EDT 2007


Can somebody help me understand the new syntax for replacing a return  
statement that returns a Proc? I'm having difficulty understanding  
what is meant by:

"Use explicit multiple return values and/or multiple expectations  
instead." source: http://mocha.rubyforge.org/classes/Mocha/ 
Expectation.html#M000024

Here is a simple example of what I am doing: http:// 
pastie.textmate.org/69923

Thanks,
Justin


More information about the mocha-developer mailing list