[mocha-developer] only checking certain parameters for a method

Steve Eichert steve.eichert at gmail.com
Thu Jun 21 08:05:57 EDT 2007


Perfect, thanks!

I realized after I sent the question about trying to search that I could
just use google with site: to do what I wanted.  Sorry for being lame :)

On 6/21/07, James Mead <jamesmead44 at gmail.com> wrote:
>
> You should be able to use the anything parameter matcher to do what you
> want
> (http://mocha.rubyforge.org/classes/Mocha/ParameterMatchers.html#M000009).
>
> i.e. member.expects(:purchase).with(1000, anything).returns(
> TestResponse.new
> )
> --
> James.
> http://blog.floehopper.org
> _______________________________________________
> mocha-developer mailing list
> mocha-developer at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mocha-developer
>


More information about the mocha-developer mailing list