[mocha-developer] mocking methods called multiple times
ryan.sobol at tobi.com
Fri Mar 28 18:54:01 EDT 2008
i'm trying to use a test dummy to block the interaction between my
test and our database.
the code im testing makes a handful of active_record calls
(create_table, add_index, etc.) i'm trying to use mocks to expect
calls at the database adapter level (i'm thinking #execute, but no
committed to it yet)
long story short, i'm having difficulties telling mocha to expect 2
calls to this method in the same test. thoughts?
More information about the mocha-developer