spy_rb
spy_rb copied to clipboard
:mag: Transparent Test Spies for Ruby
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...
see https://github.com/jbodah/spy_rb/commit/c51d86d78f77e85d005184907bc62d622188ec35#diff-54fff610a17d610014b1df764d936cb3R54
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)....