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

James Mead jamesmead44 at gmail.com
Thu Jun 21 04:49:21 EDT 2007


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


More information about the mocha-developer mailing list