igrep / crispy

Test Spy for Any Object in Ruby.
http://rubygems.org/gems/crispy
MIT License
22 stars 2 forks source link

don't spy spy-methods of double #30

Closed igrep closed 9 years ago

igrep commented 9 years ago

For example:

d = Crispy.double
d.stub(:hoge, 1)
d.hoge

d.received_messages
#=> [:stub, :hoge, received_messages]

In this case, methods except hoge should not be logged.