Skip to content

spy_rb #87

@jbodah

Description

@jbodah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions