spy_rb is a spying test framework that I've written for us to do things that Mocha and other mocking libraries didn't support
spy = Spy.on(my_obj, :do_stuff)
my_object.do_stuff
assert spy.call_count == 1
Some features are still experimental (like spy.call_history.args), but the main use cases are all well tested. We're using it in our app's test suite.
1249 LOC including tests
spy_rb is a spying test framework that I've written for us to do things that Mocha and other mocking libraries didn't support
Some features are still experimental (like
spy.call_history.args), but the main use cases are all well tested. We're using it in our app's test suite.1249 LOC including tests