Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spy_rb #87

Open
jbodah opened this issue Jun 11, 2015 · 0 comments
Open

spy_rb #87

jbodah opened this issue Jun 11, 2015 · 0 comments

Comments

@jbodah
Copy link

jbodah commented Jun 11, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant