[mocha-developer] mocking methods called multiple times
James Mead
jamesmead44 at gmail.com
Sat Mar 29 04:57:18 EDT 2008
Other possibilities...
Model.expects(:create_table).times(2) # => must be called exactly twice
# expect the same call twice
Model.expects(:create_table).with(:table_1) # => once with one parameter
Model.expects(:create_table).with(:table_2) # => once with another parameter
--
James.
http://blog.floehopper.org
http://tumble.floehopper.org
More information about the mocha-developer
mailing list