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

Spike code: ```rb # Like VCR but for any function call. Not smart enough to replay side effects module DVD require 'spy' class

enhancement

Right now you have to do something like: ```rb multi = Spy.on_object(my_object) multi.spies.each { |spy| spy.before { do_something }} ``` I want to do: ```rb multi = Spy.on_object(my_object) multi.before {...

enhancement

Right now you can do `mod = Module.new; mod.extend(Spy::API)` but it would be more intuitive to do `class MyClass < Spy::Base; end`

enhancement
easy

Currently I get: ``` blah#test_0001_test_updates_processor: ArgumentError: ArgumentError /Users/jbodah/repos/cg-ruby-sem/test/recorder.rb:177:in `credentials' /Users/jbodah/repos/cg-ruby-sem/test/recorder.rb:152:in `do_record' /Users/jbodah/repos/cg-ruby-sem/test/recorder.rb:34:in `block in record!' /Users/jbodah/repos/cg-ruby-sem/test/recorder.rb:50:in `block in freeze' ```

enhancement
easy

Adds a utility module for spying on methods and recording type data for those spies. This can then be compiled into YARD docs and inserted back into the code

Right now call_count will only be bumped when the wrapped method is actually called, not when the message was received by the spy. We should track both pieces of data

enhancement