search for: m000024

Displaying 2 results from an estimated 2 matches for "m000024".

Did you mean: 000024
2007 Sep 24
7
Parameter Matchers with optional params
Hi, Are there any docs for combining parameter matchers, or some way to define optional parameters? I''m trying to match something like: .find( 42 ) || .find( 42, {:conditions=>nil,:includes=>nil} ) Or for that matter, 42 followed by nothing or anything... Halp? I''ve tried different nested combos with any_of/all_of/anything, but getting lost trying. --Andrew
2007 Jun 12
2
replacement for returning Proc
...rstand 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