crispy
crispy copied to clipboard
Test Spy for Any Object in Ruby.
- `spy().received_method_names`: `spy().received_messages.map(&:method_name)` - `spy().received_arguments`: `spy().received_messages.map(&:arguments)` - `Crispy.received_messages(x)`: `spy(x).received_messages` - `Crispy.received_method_names(x)`: `Crispy.spy(x).received_messages.map(&:method_name)` - `Crispy.received_arguments(x)`: `Crispy.spy(x).received_messages.map(&:arguments)`
Add feature to select which method to spy by the user. ``` ruby spy_into(x).only(:hoge) x.foo spy(x).received_messages.map(&:method_name) # => [] ``` `spy_into!` involves incompatible change: `spy_into` only spies methods specified by...
https://codeclimate.com/github/igrep/crispy/Crispy::CrispyInternal::Double