spy_rb icon indicating copy to clipboard operation
spy_rb copied to clipboard

:mag: Transparent Test Spies for Ruby

Results 18 spy_rb issues
Sort by recently updated
recently updated
newest added

Found this is Rails: ```rb Spy.on(MyKlass, :default_scope) MyKlass.default_scope #=> boom! ``` It looks like it has to do with this ownership check in `build_default_scope` (?): ```rb if !base.is_a?(method(:default_scope).owner) # the...

bug

Will also need to test for visibility

enhancement

see https://github.com/jbodah/spy_rb/commit/c51d86d78f77e85d005184907bc62d622188ec35#diff-54fff610a17d610014b1df764d936cb3R54

enhancement

The README as a source of documentation is getting unmaintainable. It would be worthwhile to have an official documentation page to link to that is based on RDoc (or YARD)....

enhancement

Spy.on_class and Spy.on_object need docs

enhancement
easy